EcrfFieldFunctions { @NotNull static String name(@NotNull String studyEventOID, @NotNull String formOID, @NotNull String itemGroupOID, @NotNull String itemOID) { String study = lastElement(studyEventOID); String form = lastElement(formOID); String itemGroup = lastElement(itemGroupOID); String item = lastElement(itemOID); return (study + OID_SEPARATOR + form + OID_SEPARATOR + itemGroup + OID_SEPARATOR + item).toUpperCase(); } private  EcrfFieldFunctions();   }
@Test public void canConvertToName() { String studyEventOID = "SE.Study"; String formOID = "FRM.Form"; String itemGroupOID = "GRP.ItemGroup"; String itemOID = "GRP.ItemGroup.Item"; assertEquals("STUDY.FORM.ITEMGROUP.ITEM", EcrfFieldFunctions.name(studyEventOID, formOID, itemGroupOID, itemOID)); }