@Override
    public void setConfigAttributes(Object attributes) {
        if (attributes != null) {
            this.clear();
            ((List<Map<String, String>>)attributes).forEach(attributeMap -> this.add(new EnvironmentAgentConfig(attributeMap.get("uuid"))));
        }
    }
@Test
    void shouldNotSetAgentConfigAttributesWhenItIsNull(){
        envAgentsConfig.setConfigAttributes(null);
        assertThat(envAgentsConfig.size(), is(0));
    }