@Test
public void testDeleteAdmin() throws SQLException, AuthorizeException
{

    new NonStrictExpectations(authorizeService.getClass())
    {{
        // Allow full Admin perms
        authorizeService.isAdmin((Context) any); result = true;
    }};
    BitstreamFormat bitstreamFormat = bitstreamFormatService.create(context);
    int toDeleteIdentifier = bitstreamFormat.getID();
    bitstreamFormatService.delete(context, bitstreamFormat);
    BitstreamFormat b =  bitstreamFormatService.find(context, toDeleteIdentifier);
    assertThat("testDeleteAdmin 0", b, nullValue());
}