@Test
public void isPageResource_wrongPrimaryType() {

    when(valueMap.get(JcrConstants.JCR_PRIMARYTYPE, String.class)).thenReturn(JcrConstants.NT_FOLDER);
    PageUtil util = new PageUtil();
    assertFalse(util.isPageResource(resource));
}