### Question:
NagiosExceptionBuilder { public static SakuliForwarderRuntimeException buildUnexpectedErrorException(Exception e, String host, int port) { return new SakuliForwarderRuntimeException( String.format("unexpected error by sending the results to the gearman forwarder '%s:'%s'", host, port ), e); }  static SakuliForwarderRuntimeException buildUnexpectedErrorException(Exception e, String host, int port); static SakuliForwarderRuntimeException buildTransferException(String host, int port, GearmanJobResult result);  }### Answer:
@Test public void testBuildUnexpectedErrorException() throws Exception { SakuliForwarderRuntimeException sakuliForwarderException = NagiosExceptionBuilder.buildUnexpectedErrorException(new Exception("TEST"), "localhost", 4370); assertEquals(sakuliForwarderException.getMessage(), "unexpected error by sending the results to the gearman forwarder 'localhost:'4370'"); }