CheckedDatastore extends CheckedDatastoreReaderWriter { KeyFactory newKeyFactory() { return datastore.newKeyFactory(); } CheckedDatastore(Datastore datastore);   }
@Test public void newKeyFactory() { when(datastore.newKeyFactory()).thenReturn(keyFactory); assertThat(sut.newKeyFactory(), is(keyFactory)); verify(datastore).newKeyFactory(); }