Future future = mock(Future.class);
when(exportManager.exportProfiles(any(List.class), eq("destination"), any(Filter.class), eq(ExportOptions.ONE_ROW_PER_FORMAT), any(String.class))).thenReturn(future);
ExportCommand command = new ExportCommand();
command.setDqlFilterParser(new AntlrDqlParser());
String[] profileList = new String[] {"foo1"};
command.setProfiles(profileList);
command.setExportManager(exportManager);
command.setProfileManager(profileManager);