@Test
public void testGetNamespacePermissions()
{

    UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity = new UserNamespaceAuthorizationEntity();
    userNamespaceAuthorizationEntity.setExecutePermission(true);
    userNamespaceAuthorizationEntity.setGrantPermission(true);
    userNamespaceAuthorizationEntity.setReadPermission(true);
    userNamespaceAuthorizationEntity.setWritePermission(true);
    userNamespaceAuthorizationEntity.setWriteAttributePermission(true);
    userNamespaceAuthorizationEntity.setWriteDescriptiveContentPermission(true);
    List<NamespacePermissionEnum> namespacePermissions = userNamespaceAuthorizationHelper.getNamespacePermissions(userNamespaceAuthorizationEntity);
    assertThat(namespacePermissions.contains(NamespacePermissionEnum.EXECUTE), is(true));
    assertThat(namespacePermissions.contains(NamespacePermissionEnum.GRANT), is(true));
    assertThat(namespacePermissions.contains(NamespacePermissionEnum.READ), is(true));
    assertThat(namespacePermissions.contains(NamespacePermissionEnum.WRITE), is(true));
    assertThat(namespacePermissions.contains(NamespacePermissionEnum.WRITE_ATTRIBUTE), is(true));
    assertThat(namespacePermissions.contains(NamespacePermissionEnum.WRITE_DESCRIPTIVE_CONTENT), is(true));
}