@Test
public void testNamePatternMissingTokenName() {

  expectedException.expect(IllegalArgumentException.class);
  expectedException.expectMessage(
      is("the name is missing from the token '%:ciao%' (position 2 to 8)"));
  HeapDumpNameFormatter.validate("my%:ciao%yolo");
}