DefaultExceptionHandler implements ExceptionHandler { public void setExceptionToStatusMap( Map<Class<? extends Throwable>, Integer> exceptionToStatusMap) { this.exceptionToStatusMap = exceptionToStatusMap; }  void setExceptionToStatusMap(
            Map<Class<? extends Throwable>, Integer> exceptionToStatusMap); @Override int handleThrowableException(Throwable e);  }
@Test public void testSetExceptionToStatusMap001() { DefaultExceptionHandler handler = new DefaultExceptionHandler(); Map<Class<? extends Throwable>, Integer> exceptionToStatusMap = new HashMap<Class<? extends Throwable>, Integer>(); handler.setExceptionToStatusMap(exceptionToStatusMap); Object result; result = ReflectionTestUtils.getField(handler, "exceptionToStatusMap"); assertNotNull(result); assertEquals(exceptionToStatusMap, result); }