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

    final OrganisationUnit organisationUnit = new OrganisationUnit();
    Mockito.doReturn( OrganisationUnit.class ).when( aclService ).classForType( Mockito.eq( "organisationUnit" ) );
    Mockito.when( aclService.isShareable( Mockito.eq( OrganisationUnit.class ) ) ).thenReturn( true );
    Mockito.doReturn( organisationUnit ).when( manager ).get( Mockito.eq( OrganisationUnit.class ), Mockito.eq( "kkSjhdhks" ) );
    sharingController.setSharing( "organisationUnit", "kkSjhdhks", response, request );
}