InteractionIdHelper { public static II createInteractionId(String extension) { return IIHelper.IIFactory(Constants.HL7_OID, extension); }  static II createInteractionId(String extension);  }
@Test public void createInteractionId() { II ii = new II(); InteractionIdHelper helper = new InteractionIdHelper(); String extension = "D123401"; ii= helper.createInteractionId(extension); assertEquals(ii.getRoot(), "2.16.840.1.113883.1.6"); assertEquals(ii.getExtension(),"D123401"); }
@Test public void testCreateInteractionId() { InteractionIdHelper helper = new InteractionIdHelper(); String extension ="D123401"; II ii = new II(); ii = helper.createInteractionId(extension); assertEquals(ii.getRoot(), "2.16.840.1.113883.1.6"); assertEquals(ii.getExtension(), "D123401"); }