### Question:
DefaultProblem implements Problem { public Severity getSeverity() { return severity; } 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 testGetSeverity() { DefaultProblem problem = new DefaultProblem( null, null, null, -1, -1, null ); assertEquals( Severity.ERROR, problem.getSeverity() ); problem = new DefaultProblem( null, Severity.FATAL, null, -1, -1, null ); assertEquals( Severity.FATAL, problem.getSeverity() ); problem = new DefaultProblem( null, Severity.ERROR, null, -1, -1, null ); assertEquals( Severity.ERROR, problem.getSeverity() ); problem = new DefaultProblem( null, Severity.WARNING, null, -1, -1, null ); assertEquals( Severity.WARNING, problem.getSeverity() ); }