public static Applications toApplications(Map<String, Application> applicationMap) {
        Applications applications = new Applications();
        for (Application application : applicationMap.values()) {
            applications.addApplication(application);
        }
        return updateMeta(applications);
    }
@Test
    public void
    testToApplicationsIfNotNullReturnApplicationsFromMapOfApplication() {
        HashMap<String, Application> hashMap = new HashMap<>();
        hashMap.put("foo", new Application("foo"));
        hashMap.put("bar", new Application("bar"));
        hashMap.put("baz", new Application("baz"));

        Applications applications = createApplications(new Application("foo"),
                new Application("bar"), new Application("baz"));

        Assert.assertEquals(applications.size(),
                EurekaEntityFunctions.toApplications(hashMap).size());
    }