@Test
public void testNamePatternEmpty() {

  expectedException.expect(IllegalArgumentException.class);
  expectedException.expectMessage(is("the pattern cannot be empty"));
  HeapDumpNameFormatter.validate("");
}