AbstractRepository repository = createTestableRepository();
repository.terminating = true;
repository.terminated = true;
try {
repository.disconnect(new RepositoryConnectionStub());
fail("The disconnect() method is not calling checkStatus() or " +
"checkStatus() is broken.");
} catch (RepositoryException e) {
// Success;
}