/**
* Test method for {@link org.sete.service.project.ScienceProjectCategoryServiceImpl#editScienceProjectCategory(org.sete.vo.project.EditScienceProjectCategoryVo)}.
*/
@Test
public void testEditScienceProjectCategory() {
EditScienceProjectCategoryVo espcvo = new EditScienceProjectCategoryVo();
espcvo.setProjectCategoryName("test category");
espcvo.setProjectCategoryDescription("edited test description");
ScienceProjectCategoryType spct = new ScienceProjectCategoryType();
spct.setId(1);
spct.setKey("test_category");
spct.setLabel("test category");
EasyMock.expect(mockSPCDao.findByProjectCategoryName(espcvo.getProjectCategoryName())).andReturn(spct);
mockSPCDao.saveScienceProjectCategory(spct);
EasyMock.expectLastCall();
EasyMock.expect(mockSPCDao.findByProjectCategoryKey("test_category")).andReturn(spct);
EasyMock.replay(mockSPCDao);