@Override
    public Capabilities fromDTO(CapabilitiesDTO capabilitiesDTO) {
        return new Capabilities(capabilitiesDTO.supportsPluginStatusReport(), capabilitiesDTO.supportsClusterStatusReport(), capabilitiesDTO.supportsAgentStatusReport());
    }
@Test
    public void fromDTO_shouldConvertToCapabilitiesFromCapabilitiesDTO() {
        when(capabilitiesDTO.supportsPluginStatusReport()).thenReturn(false);
        when(capabilitiesDTO.supportsAgentStatusReport()).thenReturn(false);
        assertFalse(capabilitiesConverter.fromDTO(capabilitiesDTO).supportsPluginStatusReport());
        assertFalse(capabilitiesConverter.fromDTO(capabilitiesDTO).supportsAgentStatusReport());

        when(capabilitiesDTO.supportsPluginStatusReport()).thenReturn(true);
        when(capabilitiesDTO.supportsAgentStatusReport()).thenReturn(true);
        assertTrue(capabilitiesConverter.fromDTO(capabilitiesDTO).supportsPluginStatusReport());
        assertTrue(capabilitiesConverter.fromDTO(capabilitiesDTO).supportsAgentStatusReport());

        when(capabilitiesDTO.supportsPluginStatusReport()).thenReturn(false);
        when(capabilitiesDTO.supportsAgentStatusReport()).thenReturn(true);
        assertFalse(capabilitiesConverter.fromDTO(capabilitiesDTO).supportsPluginStatusReport());
        assertTrue(capabilitiesConverter.fromDTO(capabilitiesDTO).supportsAgentStatusReport());

        when(capabilitiesDTO.supportsPluginStatusReport()).thenReturn(true);
        when(capabilitiesDTO.supportsAgentStatusReport()).thenReturn(false);
        assertTrue(capabilitiesConverter.fromDTO(capabilitiesDTO).supportsPluginStatusReport());
        assertFalse(capabilitiesConverter.fromDTO(capabilitiesDTO).supportsAgentStatusReport());
    }