### Question:
OozieExternalStatus implements ExternalStatus { public boolean isSuccess() { return status == SUCCEEDED; } OozieExternalStatus(String statusString); boolean isRunning(); boolean isSuccess();  }### Answer:
@Test public void testIsSuccess() { Assert.assertEquals(new OozieExternalStatus(PREP.toString()).isSuccess(), false); Assert.assertEquals(new OozieExternalStatus(RUNNING.toString()).isSuccess(), false); Assert.assertEquals(new OozieExternalStatus(SUSPENDED.toString()).isSuccess(), false); Assert.assertEquals(new OozieExternalStatus(SUCCEEDED.toString()).isSuccess(), true); Assert.assertEquals(new OozieExternalStatus(KILLED.toString()).isSuccess(), false); Assert.assertEquals(new OozieExternalStatus(FAILED.toString()).isSuccess(), false); }