@Test
public void testFindByIndex() throws Exception {

    populateSampleData();
    QuerySpec spec = new QuerySpec()
            .withKeyConditionExpression("email = :email")
            .withValueMap(new ValueMap().with(":email", "bob@example.com"));
    Results<TestModel,UUID> results = dao.findByIndex("email", spec);
    assertEquals("bob@example.com", results.getData().get(0).getEmail());
    assertEquals(1, results.getData().size());
}