@Test(expected = PermissionDeniedException.class)
public void test_checkIfDataCenterIsUsable_whenDataCenterIsDisabledAndAccountIsNotRoot() throws Exception {

    final DataCenterVO dataCenter = new DataCenterVO();
    dataCenter.setAllocationState(Grouping.AllocationState.Disabled);
    final AccountVO account = new AccountVO(1L);
    when(accountManager.isRootAdmin(1L)).thenReturn(false);
    final ResourceChecker resourceChecker = buildResourceChecker();
    resourceChecker.checkIfDataCenterIsUsable(dataCenter, account);
}