### Question:
CougarServiceException extends CougarException { @Override public Fault getFault() { Fault fault = null; if (dae != null) { fault = new Fault(dae.getResponseCode().getFaultCode(), dae.getExceptionCode(), dae.getClass().getSimpleName(), dae); } else { fault = super.getFault(); } return fault; } CougarServiceException(ServerFaultCode fault, String message);  CougarServiceException(ServerFaultCode fault, String message, CougarApplicationException dae);  CougarServiceException(ServerFaultCode fault, String message, Throwable t); @Override Fault getFault(); @Override ResponseCode getResponseCode();  }### Answer:
@Test public void testGetFault() { CougarServiceException dse = new CougarServiceException(ServerFaultCode.ResponseContentTypeNotValid,"message"); CougarFault fault = dse.getFault(); assertEquals(ServerFaultCode.ResponseContentTypeNotValid.getResponseCode().getFaultCode(),fault.getFaultCode()); }