@Test
public void filterByType() {

  final MultivaluedHashMap<String, String> params = new MultivaluedHashMap<>();
  params.putSingle("filter[type]", "flagsetting");
  final Query<FlagSetting> q = mock(Query.class);
  when(this.ds.createQuery(FlagSetting.class)).thenReturn(q);
  when(q.asList()).thenReturn(this.flagSettings);
  final QueryResult<Setting> res =
      this.sps.query(net.explorviz.shared.querying.Query.fromParameterMap(params));
  assertEquals(this.flagSettings, res.getData());
}