public void testGetIsDelegated() { Factory<String> factory = () -> "Ni"; scope.get(factory); verify(delegateScope).get(factory); }
public void testDeserializedSupplierWillUseStaticallyDeterminedDelegate() throws Exception { Supplier<String> supplier = serializeThenDeserialize(scope.apply(() -> "Ni")); assertEquals(supplier.get(), "Nu"); }
public void testSupplierIsDeserializable() throws Exception { serializeThenDeserialize(scope.apply(() -> "Ni")); }