ClassBasedTableTypeReference implements TableTypeReference { public static <T> TableTypeReference of(final Class<T> table) { return new ClassBasedTableTypeReference<T>(table); } private  ClassBasedTableTypeReference(final Class<T> table); Class<T> getTable(); static TableTypeReference of(final Class<T> table); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void twoReferencesToTheSameTable_should_beEqual() { assertThat( ClassBasedTableTypeReference.of(Table.class), is(ClassBasedTableTypeReference.of(Table.class)) ); }