### Question:
DefaultProblem implements Problem { public Exception getException() { return exception; } DefaultProblem( String message, Severity severity, String source, int lineNumber, int columnNumber,
                                   Exception exception ); String getSource(); int getLineNumber(); int getColumnNumber(); String getLocation(); Exception getException(); String getMessage(); Severity getSeverity(); @Override String toString();  }### Answer:
@Test public void testGetException() { DefaultProblem problem = new DefaultProblem( null, null, null, -1, -1, null ); assertEquals( null, problem.getException() ); Exception e = new Exception(); problem = new DefaultProblem( null, null, null, -1, -1, e ); assertSame( e, problem.getException() ); }