RepositoryErrorBundle implements ErrorBundle { public String getErrorMessage() { String message = ""; if (this.exception != null) { this.exception.getMessage(); } return message; } RepositoryErrorBundle(Error error);  RepositoryErrorBundle(Error error, Exception exception); Exception getException(); @Override Error getError(); String getErrorMessage();  }
@Test public void testGetErrorMessageInteraction() { repositoryErrorBundle.getErrorMessage(); verify(mockException).getMessage(); }