@Test
public void testNamePatternHostNameNonEmptyConfiguration() {

  expectedException.expect(IllegalArgumentException.class);
  expectedException.expectMessage(is("the token '%host_name:a%' (position 4 to 16) has invalid "
      + "configuration: it does not support configuration values provided after the ':' "
      + "character, but 'a' is provided"));
  HeapDumpNameFormatter.validate("hda_%host_name:a%.hprof");
}