public static Applications copyApplications(Applications source) {
        Applications result = new Applications();
        copyApplications(source, result);
        return updateMeta(result);
    }
@Test
    public void testCopyApplicationsIfNotNullReturnApplications() {
        Application application1 = createSingleInstanceApp("foo", "foo",
                InstanceInfo.ActionType.ADDED);
        Application application2 = createSingleInstanceApp("bar", "bar",
                InstanceInfo.ActionType.ADDED);
        Applications applications = createApplications();
        applications.addApplication(application1);
        applications.addApplication(application2);
        Assert.assertEquals(2,
                EurekaEntityFunctions.copyApplications(applications).size());
    }