@Test
public void findAttributeResourceDirectTest() throws Exception {

    // Setup:
    when(designator.category()).thenReturn(resourceCategory);
    List<Literal> result = pip.findAttribute(designator, request);
    assertEquals(2, result.size());
    result.forEach(literal -> {
        assertEquals(VALUE_FACTORY.createIRI(XSD.INT), literal.getDatatype());
        assertTrue(Arrays.asList(1, 2).contains(literal.intValue()));
    });
}