private TableDescriptor createDummyTableDescriptor(String tableId) {
    BaseTableDescriptor tableDescriptor = mock(BaseTableDescriptor.class);
    when(tableDescriptor.getTableId()).thenReturn(tableId);
    return tableDescriptor;
  }
Testing caching in a more realistic scenario with Guava cache + remote table
samza-core/src/test/java/org/apache/samza/table/caching/TestCachingTable.java