@Test
  public void testTypeValueListWithRegexBoth() {
    final String line = "pmid:/1234,pmid:4567,,pmid:7890,;pmid:/5678,";
    final ImmutableList<TypeValue> expectedValues =
        ImmutableList.of(
            new TypeValue("pmid", "1234"),
            new TypeValue("pmid", "4567"),
            new TypeValue("pmid", "7890"),
            new TypeValue("pmid", "5678"));
    TypeValue defaultValue = new TypeValue("pmid", "default");
    final List<TypeValue> items =
        DecoderUtil.typeValueListFrom(line, defaultValue, "\\r[,;]", "\\r[:/]");

    Assert.assertTrue(items.containsAll(expectedValues));
  }