ToHelper { public boolean isTo(Object object) { return isToClass(object.getClass()); }  void setClassReplacer(ClassReplacer classReplacer); boolean isTo(Object object); boolean isToClass(Class<?> toClass); Class<?> getDomainClass(Class<?> toClass); Class<?> getToSubType(Class<?> toType, Object domainObject);  }
@Test public void isToTest() throws Exception { assertThat(toHelper.isTo(new SimpleClassNameTo())).isTrue(); assertThat(toHelper.isTo(new SimpleClassTypeTo())).isTrue(); assertThat(toHelper.isTo(new SimpleClassDomain())).isFalse(); }