assertEquals(Base64.encodeBytes("encryptedApiKey".getBytes()), apiKey.getEncodedApiKeyString());
assertEquals("apiKeyHash", apiKey.getApiKeyHash());
List<ApiKeyCharacterInfo> apiKeyCharacterInfos = apiKey.getCharacterInfos();
assertEquals(2, apiKeyCharacterInfos.size());
ApiKeyCharacterInfo apiKeyCharacterInfo1 = apiKeyCharacterInfos.get(0);
assertEquals(Long.valueOf(2), apiKeyCharacterInfo1.getCharacterID());
assertEquals("character1", apiKeyCharacterInfo1.getName());
assertEquals(Long.valueOf(3), apiKeyCharacterInfo1.getCorporationID());
assertEquals("corporation1", apiKeyCharacterInfo1.getCorporationName());
ApiKeyCharacterInfo apiKeyCharacterInfo2 = apiKeyCharacterInfos.get(1);
assertEquals(Long.valueOf(4), apiKeyCharacterInfo2.getCharacterID());
assertEquals("character2", apiKeyCharacterInfo2.getName());
assertEquals(Long.valueOf(5), apiKeyCharacterInfo2.getCorporationID());
assertEquals("corporation2", apiKeyCharacterInfo2.getCorporationName());
assertNotNull(apiKey.getLastCheckDate());
assertTrue(apiKey.isValid());
assertEquals("FULL", apiKey.getKeyType());
assertNotNull(apiKey.getUpdatedDate());
assertNull(apiKey.getCreatedDate());