LoadErrorManager { public LoadError getLoadError(String id) { synchronized (errors) { LoadError error = errors.get(id); return error; } } LoadErrorManager(LoadErrorFactory loadErrorFactory);  LoadErrorManager(); void addLoadError(String id, LoadError error); void addLoadError(String id, Exception exception, Mirage.Source source); LoadError getLoadError(String id); void removeLoadError(String id);  }
@Test public void testErrorsAreNull() throws Exception { LoadErrorManager manager = new LoadErrorManager(); LoadError error = manager.getLoadError("http: Assert.assertNull(error); }
@Test public void testOverloadedConstructor() throws Exception { LoadErrorFactory factory = Mockito.mock(LoadErrorFactory.class); LoadErrorManager manager = new LoadErrorManager(factory); LoadError error = manager.getLoadError("http: Assert.assertNull(error); }