    @Test
    public void testRemoveUser() throws Exception {

        context.checking(
                new Expectations() {
                    {
                        oneOf(client).removeAllFilters();
                        oneOf(client).addFilter(
                                with(equal(new BasicAuthFilter("admin", "lamepass"))));
                        oneOf(client).resource(
                                new URI("http://192.121.150.61:8080/Core-Authentication-View/api/users/joe"));
                        will(returnValue(resource));
                        oneOf(resource).accept(MediaType.APPLICATION_JSON_TYPE);
                        oneOf(resource).delete();
                    }
                });

        warpAutenticationManager.removeUser("joe");

        context.assertIsSatisfied();
    }