}
@Test
public void testDoPost() throws Exception {
PriceSet priceSet = new PriceSet();
CharacterInfo attachedCharacterInfo = new CharacterInfo();
attachedCharacterInfo.setId(2L);
lv.odylab.evemanage.domain.eve.Character character = new Character();
character.setCharacterID(3L);
character.setName("characterName");
character.setCorporationID(4L);
character.setCorporationName("corporationName");
character.setCorporationTicker("corporationTicker");
character.setAllianceID(5L);
character.setAllianceName("allianceName");
priceSet.setAttachedCharacterInfo(attachedCharacterInfo);
when(httpServletRequest.getParameter("priceSetID")).thenReturn("1");
when(priceSetDao.get(new Key<PriceSet>(PriceSet.class, 1))).thenReturn(priceSet);
when(characterDao.get(new Key<Character>(Character.class, 2))).thenReturn(character);
checkPriceSetTaskServlet.doPost(httpServletRequest, httpServletResponse);
verify(priceSetDao).putWithoutChecks(priceSet);
assertEquals(Long.valueOf(3), attachedCharacterInfo.getCharacterID());
assertEquals("characterName", attachedCharacterInfo.getName());
assertEquals(Long.valueOf(4), attachedCharacterInfo.getCorporationID());
assertEquals("corporationName", attachedCharacterInfo.getCorporationName());
assertEquals("corporationTicker", attachedCharacterInfo.getCorporationTicker());
assertEquals(Long.valueOf(5), attachedCharacterInfo.getAllianceID());
assertEquals("allianceName", attachedCharacterInfo.getAllianceName());
}