@Test
public void isResourceValid_invalid() {

    when(valueMap.get(JcrConstants.JCR_PRIMARYTYPE, String.class)).thenThrow(IllegalArgumentException.class);
    assertFalse(traversData.isResourceValid(resource));
}