@Deprecated
    protected DBSort.SortBuilder getSortBuilder(String order, String field) {
        DBSort.SortBuilder sortBuilder;
        if ("desc".equalsIgnoreCase(order)) {
            sortBuilder = DBSort.desc(field);
        } else {
            sortBuilder = DBSort.asc(field);
        }
        return sortBuilder;
    }
@Test
    public void sortBuilder() {
        assertThat(dbService.getSortBuilder("asc", "f")).isEqualTo(DBSort.asc("f"));
        assertThat(dbService.getSortBuilder("aSc", "f")).isEqualTo(DBSort.asc("f"));
        assertThat(dbService.getSortBuilder("desc", "f")).isEqualTo(DBSort.desc("f"));
        assertThat(dbService.getSortBuilder("dEsC", "f")).isEqualTo(DBSort.desc("f"));
    }