IIHelper { public static II IIFactory(String root, String extension) { II ii = new II(); ii.setExtension(extension); ii.setRoot(HomeCommunityMap.formatHomeCommunityId(root)); return ii; }  static II IIFactoryCreateNull(String nullFlavor); static II IIFactoryCreateNull(); static II IIFactory(String root, String extension); static II IIFactory(QualifiedSubjectIdentifierType qualifiedSubjectIdentifier);  }
@Test public void testIIFactory() { II ii = new II(); IIHelper helper = new IIHelper(); String root = "1.1"; String extension = "1.16.17.19"; ii= helper.IIFactory(root, extension); assertEquals(ii.getExtension(), extension); assertEquals(ii.getRoot(), root); }
@Test public void IIFactory() { II ii = new II(); IIHelper helper = new IIHelper(); ii = helper.IIFactory(createQualifiedSubjectIdentifierType()); assertEquals(ii.getExtension(), "D123401"); assertEquals(ii.getRoot(), "1.1"); }