@Test
public void testInit() throws Exception {

    global = new Global();
    // Method to test
    DefaultTagable tags = new DefaultTagable();
    tags.setTag(GlobalTag.patientId.tagW, GlobalTag.patientId.value);
    tags.setTag(GlobalTag.patientName.tagW, GlobalTag.patientName.value);
    tags.setTag(GlobalTag.issuerOfPatientId.tagW, GlobalTag.issuerOfPatientId.value);
    tags.setTag(GlobalTag.patientBirthDate.tagW, GlobalTag.patientBirthDate.value);
    tags.setTag(GlobalTag.patientSex.tagW, GlobalTag.patientSex.value);
    tags.setTag(GlobalTag.studyDate.tagW, GlobalTag.studyDate.value);
    tags.setTag(GlobalTag.modality.tagW, GlobalTag.modality.value);
    global.init(tags);
    // Tests
    assertThat(global.getTagEntrySet()).hasSize(8);
}