SubmoduleAddCommand command = new SubmoduleAddCommand(db);
command.setPath(path);
command.setURI("git://server/repo.git");
try {
command.call().close();
fail("Exception not thrown");
} catch (JGitInternalException e) {
assertEquals(
MessageFormat.format(JGitText.get().submoduleExists, path),
e.getMessage());