@Test
public void provisionLookup() throws IOException {

    // wired hack for getting resource dir path ...
    String resourceDir = getResourceFile(
            "demo_credentials_user1.fdrp").getParent();
    Provisioner p = new Provisioner();
    List<File> files = p.findProvisionFilesInDir(new File(resourceDir));
    List<String> expectedFilenames = Arrays.asList(
            "demo_credentials_user1.fdrp",
            "demo_credentials_user2.fdrp");
    Assert.assertEquals(2, files.size());
    for (File f : files) {
        Assert.assertTrue("unexpected file name " + f.getName(), expectedFilenames.contains(f.getName()));
    }
}