RepositoryErrorBundle implements ErrorBundle { @Override public Exception getException() { return exception; } RepositoryErrorBundle( Exception exception ); @Override Exception getException(); @Override String getErrorMessage();  }
@Test( expected = Exception.class ) public void testGetExceptionInteraction() throws Exception{ throw repositoryErrorBundle.getException(); }