@Test public void findOneEntityWithOnlyHashKey() { User user = repoForEntityWithOnlyHashKey.findOne(1l); Mockito.verify(dynamoDBOperations).load(User.class, 1l); assertEquals(testUser, user); }
@Test public void findOneEntityWithHashAndRangeKey() { Playlist playlist = repoForEntityWithHashAndRangeKey.findOne(testPlaylistId); assertEquals(testPlaylist, playlist); }