@Test
public void testFindById() {

  when(this.ds.get(UserPreference.class, this.userSettings.get(0).getId()))
      .thenReturn(this.userSettings.get(0));
  final UserPreference retrieved = this.uss.find(this.userSettings.get(0).getId()).get();
  assertEquals(this.userSettings.get(0), retrieved);
}