@Test
public void testGetResourcesWithUserInputBeginning() throws Exception {

    ResourceLookupContext resourceLookupContext = Mockito.mock(ResourceLookupContext.class);
    when(resourceLookupContext.getUserInput()).thenReturn("/pr");
    final List<String> expectedResources = new ArrayList<>();
    expectedResources.add("/provenance");
    expectedResources.add("/proxy");
    List<String> resources = niFiClient.getResources(resourceLookupContext);
    Assert.assertNotNull(resources);
    Assert.assertEquals(expectedResources.size(), resources.size());
    resources.removeAll(expectedResources);
    Assert.assertEquals(0, resources.size());
}