public void constructors() throws IOException {
String message = "test";
NullPointerException cause = new NullPointerException();
FileRepository repo = new FileRepository(testRepo);
GitException exception = new GitException(message, repo);
assertEquals(repo, exception.getRepository());
assertEquals(message, exception.getMessage());
exception = new GitException(message, cause, repo);
assertEquals(repo, exception.getRepository());
assertEquals(cause, exception.getCause());
assertEquals(message, exception.getMessage());
exception = new GitException(repo);
assertEquals(repo, exception.getRepository());
assertNull(exception.getCause());
assertNull(exception.getMessage());
}