public boolean validateUuidPresent(CaseInsensitiveString name, Set<String> uuids) {
        if (isEmpty(uuids) || !uuids.contains(uuid)) {
            this.addError(UUID, format("Environment '%s' has an invalid agent uuid '%s'", name, uuid));
        }
        return errors().isEmpty();
    }
@Test
    void shouldValidateToTrueIfTheUUIDAssociatedWithEnvironmentIsPresentInTheSystem() {
        String uuidThatWillBeValidated = "uuid2";
        EnvironmentAgentConfig envAgentConf = new EnvironmentAgentConfig(uuidThatWillBeValidated);

        Set<String> setOfUUIDs = Set.of("uuid1", uuidThatWillBeValidated, "uuid3");
        boolean isPresent = envAgentConf.validateUuidPresent(new CaseInsensitiveString("env1"), setOfUUIDs);

        assertTrue(isPresent);
    }