@Test
public void testNamePatternCountingPercentTokens3() {

  expectedException.expect(IllegalArgumentException.class);
  expectedException.expectMessage(is("the token starter character '%' at position 2 does not "
      + "have a matching token closer '%' character"));
  HeapDumpNameFormatter.validate("%%%");
}