### Question:
DefaultErrorResponse implements EscrowAgentErrorResponse { @Override public EscrowAgentErrorResponseException getErrorResponseException(final String errorResponse) { return new EscrowAgentErrorResponseException(errorResponse); }  @Override EscrowAgentErrorResponseException getErrorResponseException(final String errorResponse);  }### Answer:
@Test(expected = EscrowAgentErrorResponseException.class) public void testGetErrorResponseException() throws EscrowAgentErrorResponseException { EscrowAgentErrorResponseException ex = new DefaultErrorResponse() .getErrorResponseException("error"); Assert.assertEquals(ex.getMessage(), "error"); throw ex; }