@Test
public void testBadFlex() {

  String appName = "unknown_app";
  HashMap<String, String> componentCounts = new HashMap<String, String>();
  try {
    int result = badAsc.actionFlex(appName, componentCounts);
    assertEquals(EXIT_EXCEPTION_THROWN, result);
  } catch (IOException | YarnException e) {
    fail();
  }
}