### Question:
YarnACLHandler { public void setACLs(ContainerLaunchContext containerLaunchContext) { Map<ApplicationAccessType, String> aclDefinition = new HashMap<>(); String viewAcl = launcherConf.get(JavaActionExecutor.LAUNCER_VIEW_ACL); if (viewAcl != null) { LOG.info("Setting view-acl: [{0}]", viewAcl); aclDefinition.put(ApplicationAccessType.VIEW_APP, viewAcl); } String modifyAcl = launcherConf.get(JavaActionExecutor.LAUNCER_MODIFY_ACL); if (modifyAcl != null) { LOG.info("Setting modify-acl: [{0}]", modifyAcl); aclDefinition.put(ApplicationAccessType.MODIFY_APP, modifyAcl); } if (!aclDefinition.isEmpty()) { containerLaunchContext.setApplicationACLs(aclDefinition); } } YarnACLHandler(Configuration launcherConf); void setACLs(ContainerLaunchContext containerLaunchContext);  }### Answer:
@Test public void testViewACLisSet() { setupYarnACLHandler(true); setViewACL(); yarnACLSetter.setACLs(contextMock); assertViewACLset(); }
@Test public void testModifyACLisSet() { setupYarnACLHandler(true); setModifyACL(); yarnACLSetter.setACLs(contextMock); assertModifyACLset(); }
@Test public void testACLisEmptyWhenEnabledAndNoACLsDefined() { setupYarnACLHandler(true); yarnACLSetter.setACLs(contextMock); assertNoACLset(); }
@Test public void testACLisEmptyWhenMRACLsDisabled() { setupYarnACLHandler(false); setModifyACL(); setViewACL(); yarnACLSetter.setACLs(contextMock); assertViewACLset(); assertModifyACLset(); }