@Test
public void testCacheDeletedAfterDeletingEntity() {

    ObjectResultDataset dataset = new ObjectResultDataset();
    dataset.insert(1L, "name", "Jeff Nelson");
    dataset.insert(2L, "name", "Jeff Nelson");
    dataset.remove(1L);
    dataset.forEach((record, data) -> {
        Assert.assertNotEquals(Long.valueOf(1), record);
    });
}