ResultMatch { public boolean isFailed() { return getStatus() == Status.FAILED; }  Result getResult(); void setResult(final Result result); Match getMatch(); void setMatch(final Match match); List<Embedding> getEmbeddings(); void setEmbeddings(final List<Embedding> embeddings); List<String> getOutput(); void setOutput(final List<String> output); boolean hasOutputs(); List<String> returnEscapedOutputs(); String getGlueMethodName(); List<Argument> getArguments(); Status getStatus(); String getStatusString(); boolean isFailed(); boolean isPassed(); boolean isSkipped(); Status getConsolidatedStatus(); String getConsolidatedStatusString();  }
@Test public void isFailedTest() { Result result = new Result(); result.setStatus(Status.FAILED.getStatusString()); resultMatch.setResult(result); assertThat(resultMatch.isFailed(), is(true)); assertThat(resultMatch.isPassed(), is(false)); assertThat(resultMatch.isSkipped(), is(false)); }