ConvertConstructorToReflectedConstructor implements Converter<Constructor<?>, FluentConstructor<T>> { @SuppressWarnings("unchecked") @Override public FluentConstructor<T> convert(final Constructor<?> from) { return new FluentConstructorImpl<T>(reflectedTypeFactory, typeLiteral, (Constructor<T>) from); } ConvertConstructorToReflectedConstructor(
            final ReflectedTypeFactory reflectedTypeFactory,
            final TypeLiteral<T> typeLiteral);  ConvertConstructorToReflectedConstructor(
            final ReflectedTypeFactory reflectedTypeFactory,
            final Class<T> klass); @SuppressWarnings("unchecked") @Override FluentConstructor<T> convert(final Constructor<?> from);  }
@Test public void constructorIsConvertedToReflectedConstructor() throws Exception { assertThat(new ConvertConstructorToReflectedConstructor<ExampleClass>( new ReflectedTypeFactoryImpl(), ExampleClass.class) .convert(ExampleClass.class .getDeclaredConstructor()), reflectingOnConstructor(ExampleClass.class .getDeclaredConstructor())); }