@Test
public void testDeleteDrugInfoShouldUsePrivileges() {
Context.getUserContext().getAuthenticatedUser().removeRole(Context.getUserService().getRole("System Developer"));
Drug drug = new Drug();
drug.setId(3);
DrugInfo drugInfo = new DrugInfo();
drugInfo.setDrug(drug);
drugInfo.setId(2);
drugInfo.setName("TestDrugInfo2");
drugInfo.setDescription("Second Test DrugInfo");
drugInfo.setCreator(Context.getUserContext().getAuthenticatedUser());
drugInfo.setDateCreated(new java.util.Date());
drugInfo.setUuid("68547121-1b70-465e-99ee-c9dfd95e7d30");
drugInfo.setRetired(Boolean.FALSE);
try {
s.deleteDrugInfo(drugInfo);
//if we don't throw exception fail - no privileges required!
fail("No privileges required for deleteDrugInfo");
}