ClassBasedTableTypeResolver implements TableTypeResolver { @Override public boolean canResolve(final TableTypeReference reference) { return reference instanceof ClassBasedTableTypeReference; } ClassBasedTableTypeResolver(); @Override boolean canResolve(final TableTypeReference reference); @Override TableType resolve(final TableTypeReference reference);  }
@Test public void canResolve_should_handleClassBasedTableTypeReference() { assertThat(resolver.canResolve(ClassBasedTableTypeReference.of(Table.class)), is(true)); }
@Test public void canResolve_should_notHandleOtherReferences() { assertThat(resolver.canResolve(anotherReference), is(false)); }