ConvertClassToReflectedTypeMatcher implements Converter<Class<?>, Matcher<FluentAccess<?>>> { @Override public Matcher<FluentAccess<?>> convert(final Class<?> from) { return reflectingOn(from); }  @Override Matcher<FluentAccess<?>> convert(final Class<?> from);  }
@Test public void classConvertedToMatcherForReflectedType() throws Exception { final Matcher<FluentAccess<?>> matcherUnderTest = new ConvertClassToReflectedTypeMatcher().convert(ExampleClass.class); assertThat(type(ExampleClass.class), matcherUnderTest); }