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);  }
@Test public void testIIFactory() { String root = "1.1"; String extension ="D123401"; IIHelper II = new IIHelper(); II ii = new II(); ii = II.IIFactory(root, extension); assertEquals(ii.getExtension(), "D123401"); assertEquals(ii.getRoot(), "1.1"); }