}
}
@Test
public void testCorrectTypeIsLoaded() throws Exception {
TypeDataVo input = new TypeDataVo();
input.setClassName("org.sete.domain.type.ScienceProjectCategoryType");
input.setKey("chemistry");
TypeDataVo output = service.loadTypeData(input);
ScienceProjectCategoryType spct =
(ScienceProjectCategoryType)TypeUtil.forKey(Class.forName(input.getClassName()),
input.getKey());
assertEquals("Classnames should match.", output.getClassName(),
spct.getClass().getName());
assertEquals("Keys should mtach.", output.getKey(), spct.getKey());
assertEquals("Labels should match.", output.getLabel(), spct.getLabel());
assertEquals("Descriptions should match.", output.getDescription(), spct.getDescription());
assertEquals("Long Descriptions should match.", output.getLongDescription(), spct.getLongDescription());
}