@Test
public void testUpdateAuth() throws Exception
{

    new NonStrictExpectations(authorizeService.getClass())
    {{
        // Allow full admin permissions
        authorizeService.isAdmin(context); result = true;
    }};
    String namespace = "namespace2";
    String name = "name2";
    MetadataSchema metadataSchema = metadataSchemaService.create(context, name, namespace);
    metadataSchemaService.update(context, metadataSchema);
    MetadataSchema found = metadataSchemaService.findByNamespace(context, namespace);
    assertThat("testUpdateAuth 0",found.getID(), equalTo(metadataSchema.getID()));
}