    @Test
    public void negativeTestRepo2()
            throws Exception {


        Repository rep = new MarkLogicRepository(host, port, user, password, "DIGEST");
        rep.initialize();
        rep.shutDown();

        // should throw error as we shutdown repo
        exception.expect(RepositoryException.class);
        exception.expectMessage("MarkLogicRepository not initialized.");
        @SuppressWarnings("unused")
        RepositoryConnection conn = rep.getConnection();
    }