public static Set<String> selectApplicationNames(Applications applications) {
        Set<String> result = new HashSet<>();
        for (Application app : applications.getRegisteredApplications()) {
            result.add(app.getName());
        }
        return result;
    }
@Test
    public void testSelectApplicationNamesIfNotNullReturnNameString() {
        Applications applications = createApplications(new Application("foo"),
                new Application("bar"), new Application("baz"));

        HashSet<String> strings =
                new HashSet<>(Arrays.asList("baz", "bar", "foo"));
        Assert.assertEquals(strings,
                EurekaEntityFunctions.selectApplicationNames(applications));
    }