@Test
public void testExecutablePathWithCorrectConfig()
    throws IOException, YarnException {

  fakeBinary = new File(getTestParentFolder() + "/aocl");
  conf.set(YarnConfiguration.NM_FPGA_PATH_TO_EXEC,
      getTestParentFolder() + "/aocl");
  touchFile(fakeBinary);
  fpgaDiscoverer.initialize(conf);
  assertEquals("Correct configuration should return user setting",
      getTestParentFolder() + "/aocl", openclPlugin.getPathToExecutable());
}