ApiKey apiKey = new ApiKey();
apiKeys.add(apiKey);
apiKey.setCharacterInfos(new ArrayList<ApiKeyCharacterInfo>());
apiKey.setValid(Boolean.TRUE);
List<Character> characters = new ArrayList<Character>();
Character character1 = new Character();
character1.setCorporationID(1L);
character1.setCorporationName("corporationName");
List<String> corporationTitles = new ArrayList<String>();
corporationTitles.add("title1");
character1.setCorporationTitles(corporationTitles);
character1.setCorporationTicker("corporationTicker");
character1.setAllianceID(2L);
character1.setAllianceName("allianceName");
Character character2 = new Character();
characters.add(character1);
characters.add(character2);
when(apiKeyDao.getAll(userKey)).thenReturn(apiKeys);
when(characterDao.getAll(userKey)).thenReturn(characters);