@Test
public void testCreateAttributeMap_SortNull() {

    int page = 1;
    int size = 1;
    // run
    Map<String, Object> attributesMap = PaginationInfo.createAttributeMap(
            page, size, null);
    // assert
    assertThat(Integer.valueOf(attributesMap.get("page").toString()), is(
            page));
    assertThat(Integer.valueOf(attributesMap.get("size").toString()), is(
            size));
    assertThat(attributesMap.get("sortOrderProperty"), is(nullValue()));
    assertThat(attributesMap.get("sortOrderDirection"), is(nullValue()));
}