@Test
public void checkPermissionsAssertDoNothingWhenAuthorizationDisabled()
{

    NamespaceEntity expectedNamespaceEntity = new NamespaceEntity();
    Collection<String> requestedIamRoleNames = new ArrayList<>();
    when(configurationHelper.getBooleanProperty(any())).thenReturn(false);
    namespaceIamRoleAuthorizationHelper.checkPermissions(expectedNamespaceEntity, requestedIamRoleNames);
    verify(configurationHelper).getBooleanProperty(ConfigurationValue.NAMESPACE_IAM_ROLE_AUTHORIZATION_ENABLED);
    verifyNoMoreInteractions(configurationHelper, namespaceIamRoleAuthorizationDao);
}