HL7DataTransformHelper { public static ADExplicit createADExplicit(boolean notOrdered, String street, String city, String state, String zip) { ADExplicit result = new ADExplicit(); result.setIsNotOrdered(notOrdered); result.getUse().add(street); result.getUse().add(city); result.getUse().add(state); result.getUse().add(zip); return result; }  static II IIFactory(String root); static II IIFactory(String root, String extension); static II IIFactory(String root, String extension, String assigningAuthorityName); static II IIFactoryCreateNull(); static CS CSFactory(String code); static CE CEFactory(String code); static CD CDFactory(String code); static CD CDFactory(String code, String codeSystem); static CD CDFactory(String code, String codeSystem, String displayName); static TSExplicit TSExplicitFactory(String value); static TSExplicit creationTimeFactory(); static ENExplicit convertPNToEN(PNExplicit pnName); static PNExplicit convertENtoPN(ENExplicit value); static ENExplicit createEnExplicit(String firstName, String middleName, String lastName, String title,
            String suffix); static PNExplicit createPNExplicit(String firstName, String lastName); static PNExplicit createPNExplicit(String firstName, String middleName, String lastName); static PNExplicit createPNExplicit(String firstName, String middleName, String lastName, String title,
            String suffix); static ADExplicit createADExplicit(boolean notOrdered, String street, String city, String state,
            String zip); static ADExplicit createADExplicit(String street, String city, String state, String zip); static ADExplicit createADExplicit(boolean notOrdered, String street, String street1, String city,
            String state, String zip); static ADExplicit createADExplicit(String street, String street1, String city, String state, String zip); static TELExplicit createTELExplicit(String value);  }
@Test public void createADExplicit() { String street = "12601 FairLakes Circle"; String city = "Fairfax"; String state = "VA"; String zip = "22102"; HL7DataTransformHelper helper = new HL7DataTransformHelper(); ADExplicit result = helper.createADExplicit(street, city, state, zip); assertNotNull(result.getUse()); assertEquals(result.getUse().size(), 4); }
@Test public void createADExplicitWithStreet1() { String street = "12601 FairLakes Circle"; String street1 = "100 suite"; String city = "Fairfax"; String state = "VA"; String zip = "22102"; HL7DataTransformHelper helper = new HL7DataTransformHelper(); ADExplicit result = helper.createADExplicit(street, street1, city, state, zip); assertNotNull(result.getUse()); assertEquals(result.getUse().size(), 5); }