@Test
public void testNamePatternUnknownToken() {

  expectedException.expect(IllegalArgumentException.class);
  expectedException.expectMessage(is("the token '%ciao%' (position 1 to 6) is unknown"));
  HeapDumpNameFormatter.validate("a%ciao%b");
}