@Test
public void testGetDicomPatientSex() throws Exception {

    String sex = TagD.getDicomPatientSex(null);
    assertEquals("", sex); //$NON-NLS-1$
    sex = TagD.getDicomPatientSex(""); //$NON-NLS-1$
    assertEquals("", sex); //$NON-NLS-1$
    sex = TagD.getDicomPatientSex("F"); //$NON-NLS-1$
    assertEquals(Messages.getString("TagW.female"), sex); //$NON-NLS-1$
    sex = TagD.getDicomPatientSex("M"); //$NON-NLS-1$
    assertEquals(Messages.getString("TagW.Male"), sex); //$NON-NLS-1$
    sex = TagD.getDicomPatientSex("Male"); //$NON-NLS-1$
    assertEquals(Messages.getString("TagW.Male"), sex); //$NON-NLS-1$
    sex = TagD.getDicomPatientSex("O"); //$NON-NLS-1$
    assertEquals(Messages.getString("TagW.other"), sex); //$NON-NLS-1$
    sex = TagD.getDicomPatientSex("U"); //$NON-NLS-1$
    assertEquals(Messages.getString("TagW.other"), sex); //$NON-NLS-1$
}