@Test
public void testMatchByField() {

    assertEquals(1, matchByField("HLA-A*01", "HLA-A*01"));
    assertEquals(1, matchByField("HLA-A*01:01", "HLA-A*01"));
    assertEquals(1, matchByField("HLA-A*01:02:01", "HLA-A*01:01:01"));
    assertEquals(2, matchByField("HLA-DQB1*05:02:01", "HLA-DQB1*05:02:04"));
    assertEquals(3, matchByField("HLA-A*01:01:01", "HLA-A*01:01:01"));
    assertEquals(4, matchByField("HLA-A*01:01:01:01", "HLA-A*01:01:01:01"));
    assertEquals(0, matchByField("HLA-DRB1*13:01:01", "HLA-DRB3*01:01:02:01"));
    assertEquals(0, matchByField("HLA-DRB1*13:01:01", "HLA-DRB3*01:01:02:02"));
}