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

  fakeBinary = new File(getTestParentFolder() + "/bin/aocl");
  fakeBinary.getParentFile().mkdirs();
  touchFile(fakeBinary);
  Map<String, String> newEnv = new HashMap<String, String>();
  newEnv.put("ALTERAOCLSDKROOT", getTestParentFolder());
  openclPlugin.setEnvProvider(s -> {
    return newEnv.get(s); });
  fpgaDiscoverer.initialize(conf);
  assertEquals("No configuration but with environment ALTERAOCLSDKROOT set",
      getTestParentFolder() + "/bin/aocl", openclPlugin.getPathToExecutable());
}