= subsystem.getFunction(fixtures.makeFunctionId(subjectIndex));
= Common.getFunction(subsystem, fixtures.makeFunctionId(subjectIndex));
  public final void testGetGrantableChoices()  throws  	ObjectNotFoundException  {    for (int subjectIndex = 0;		 		 subjectIndex < Constants.MAX_SUBJECTS;		 		 subjectIndex++)    {      Subject subject      	= signet.getSubject(      			Signet.DEFAULT_SUBJECT_TYPE_ID, Common.makeSubjectId(subjectIndex));            PrivilegedSubject pSubject = signet.getPrivilegedSubject(subject);            // Here's a picture of the Assignments and Limit-values which this test      // expects to find:      //      // Subject 0      //   TreeNode L_0_S_0_ID      //   Function 0      //     Permission 0      //       Limit 0      //         limit-value: 0      //  Subject 1      //    TreeNode L_0_S_0_ID      //    Function 1      //      Permission 1      //        Limit 0      //          limit-value: 0      //        Limit 1      //          limit-value: 1      //  Subject 2      //    TreeNode L_0_S_0_ID      //    Function 2      //      Permission 2      //        Limit 0      //          limit-value: 0      //        Limit 1      //          limit-value: 1      //        Limit 2      //          limit-value: 2            Subsystem subsystem = signet.getSubsystem(Constants.SUBSYSTEM_ID);      Function function        = subsystem.getFunction(fixtures.makeFunctionId(subjectIndex));      Tree tree = signet.getTree(Constants.TREE_ID);      TreeNode treeNode = fixtures.getRoot(tree);      Limit limit = subsystem.getLimit(fixtures.makeLimitId(subjectIndex));      Set grantableChoices      	= pSubject.getGrantableChoices(function, treeNode, limit);            assertEquals(1, grantableChoices.size());    }  }