ActiveVOSAdministrativeFunctions { public List<Integer> extractContributionIds(List<AesContribution> contributions) { List<Integer> result = new ArrayList<Integer>(); for(AesContribution c : contributions) { result.add(c.getId()); } return result; } ActiveVOSAdministrativeFunctions(String endpoint, String username,
			String password); List<AesContribution> getAllContributions(); List<Integer> extractContributionIds(List<AesContribution> contributions); void takeContributionOffline(int contributionId); void deleteContribution(int contributionId, boolean deleteProcesses); void deployBpr(String bprFileName, InputStream contents); void deployBpr(String bprFileName, byte[] contents); void terminateAllProcessInstances();  }
@Test public void testExtractContributionIds() throws Exception { ActiveVOSAdministrativeFunctions activevos = new ActiveVOSAdministrativeFunctions("", null, null); List<AesContribution> contributions = new ArrayList<AesContribution>(); contributions.add(new AesContribution()); contributions.get(0).setId(2); contributions.add(new AesContribution()); contributions.get(1).setId(5); List<Integer> ids = activevos.extractContributionIds(contributions); assertEquals(2, ids.size()); assertEquals(2, (int)ids.get(0)); assertEquals(5, (int)ids.get(1)); }