@Test
public void sortByNotAddedInCaseFilterWontHaveTypeKey() {

  LocationDaoImpl dao = new LocationDaoImpl();
  SearchDTO searchDto = createSearchDtoObj();
  ((Map<String, Object>) searchDto.getAdditionalProperties().get(JsonKey.FILTERS))
      .remove(JsonKey.TYPE);
  searchDto = dao.addSortBy(searchDto);
  Assert.assertTrue(searchDto.getSortBy().size() == 0);
}