@Test( expected = AccessDeniedException.class )
public void systemDefaultMetadataNoAccess() throws Exception
{

    final Category category = new Category();
    category.setName( Category.DEFAULT_NAME + "x" );
    Mockito.doReturn( Category.class ).when( aclService ).classForType( Mockito.eq( "category" ) );
    Mockito.when( aclService.isShareable( Mockito.eq( Category.class ) ) ).thenReturn( true );
    Mockito.when( manager.get( Mockito.eq( Category.class ), Mockito.eq( "kkSjhdhks" ) ) ).thenReturn( category );
    sharingController.setSharing( "category", "kkSjhdhks", response, request );
}