StandardTransformFactory implements TransformFactory { @Override public <A, B, T extends Transform<A, B>> TransformFactory install( Class<A> from, Class<B> to, Supplier<T> transform) { return transformFactory.install(from, to, transform); } StandardTransformFactory(final String name); @Override String getName(); @Override TransformFactory install(
            Class<A> from, Class<B> to, Supplier<T> transform); @Override Set<Entry<Class<?>, T>> allFrom(
            Class<A> model);  }
@Test void install() { final Transform<Integer, String> transform = (g, i) -> Optional.of(Integer.toString(i)); instance.install(Integer.class, String.class, () -> transform); final StandardGenerator generator = new StandardGenerator(new DefaultDependencyManager(), instance); final Optional<String> result = generator.on(1); assertEquals("1", result.orElseThrow(NoSuchElementException::new)); }