"RemoveTypes" })
public void deleteOperationDefsForRemovedType() throws Exception {
OperationManagerLocal operationMgr = LookupUtil.getOperationManager();
SubjectManagerLocal subjectMgr = LookupUtil.getSubjectManager();
OperationDefinitionCriteria criteria = new OperationDefinitionCriteria();
criteria.addFilterResourceTypeName("ServerC");
criteria.addFilterName("run");
List<OperationDefinition> operationDefs = operationMgr.findOperationDefinitionsByCriteria(
subjectMgr.getOverlord(), criteria);
assertEquals("The operation definition should have been deleted", 0, operationDefs.size());