when(profile2.getUuid()).thenReturn("profile2");
ProfileInstance profile3 = mock(ProfileInstance.class);
when(profile3.getUuid()).thenReturn("profile3");
when(profileManager.open(eq(new File("foo1")), any(ProgressObserver.class))).thenReturn(profile1);
when(profileManager.open(eq(new File("foo2")), any(ProgressObserver.class))).thenReturn(profile2);
when(profileManager.open(eq(new File("foo3")), any(ProgressObserver.class))).thenReturn(profile3);
Future future = mock(Future.class);
when(exportManager.exportProfiles(any(List.class), eq(destination), (Filter) isNull(), eq(ExportOptions.ONE_ROW_PER_FORMAT), eq("UTF-8"))).thenReturn(future);