public ServerStatus addCapability(Capability capability) {
        this.capabilitySet.add(capability);
        return this;
    }
@Test
    public void testAddCapability() throws Exception {
        assertEquals(status, status.addCapability(ServerStatus.Capability.LOCALMODE));
        assertTrue(status.hasCapabilities(ServerStatus.Capability.SERVER, ServerStatus.Capability.LOCALMODE));
    }