### Question:
NagiosCheckResult { public String getPayload() { return payload; } NagiosCheckResult(String queueName, String uuid, String payload); String getUuid(); String getQueueName(); String getPayload();  }### Answer:
@Test public void testGetPayload() throws Exception { String gearmanPayload="test_payload"; when(outputBuilder.createOutput(testSuite)).thenReturn(gearmanPayload); NagiosCheckResult checkResult = testling.build(testSuite); Assert.assertEquals(checkResult.getPayload(), gearmanPayload); Assert.assertNotNull(checkResult.getQueueName()); Assert.assertEquals(checkResult.getQueueName(), gearmanProperties.getServerQueue()); Assert.assertNotNull(checkResult.getUuid()); Assert.assertEquals(checkResult.getUuid(), testSuite.getGuid()); }