CharacterInfo attachedCharacterInfo = new CharacterInfo();
attachedCharacterInfo.setId(2L);
blueprint.setAttachedCharacterInfo(attachedCharacterInfo);
when(httpServletRequest.getParameter("blueprintID")).thenReturn("1");
when(blueprintDao.get(new Key<Blueprint>(Blueprint.class, 1))).thenReturn(blueprint);
when(characterDao.get(new Key<Character>(Character.class, 2))).thenThrow(new NotFoundException(null));
checkBlueprintTaskServlet.doPost(httpServletRequest, httpServletResponse);
verify(blueprintDao).putWithoutChecks(blueprint);
assertNull(blueprint.getAttachedCharacterInfo());
}