HL7DataTransformHelper { public static TSExplicit creationTimeFactory() { String timestamp = ""; TSExplicit creationTime = new TSExplicit(); try { GregorianCalendar today = new GregorianCalendar(TimeZone.getTimeZone("GMT")); timestamp = String.valueOf(today.get(GregorianCalendar.YEAR)) + String.valueOf(today.get(GregorianCalendar.MONTH) + 1) + String.valueOf(today.get(GregorianCalendar.DAY_OF_MONTH)) + String.valueOf(today.get(GregorianCalendar.HOUR_OF_DAY)) + String.valueOf(today.get(GregorianCalendar.MINUTE)) + String.valueOf(today.get(GregorianCalendar.SECOND)); } catch (Exception e) { LOG.error("Exception when creating XMLGregorian Date: {}", e.getLocalizedMessage(), e); } if (NullChecker.isNotNullish(timestamp)) { LOG.debug("Setting the creation timestamp to " + timestamp); creationTime.setValue(timestamp); } return creationTime; }  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 creationTimeFactory() { TSExplicit ts = new TSExplicit(); HL7DataTransformHelper helper = new HL7DataTransformHelper(); ts = helper.creationTimeFactory(); assertNotNull(ts.getValue()); }