PatternHolder { public Pattern getPattern() { return pattern; } PatternHolder(Pattern pattern); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); Pattern getPattern();  }
@Test public void testGetPattern(TestContext context) { PatternHolder pH = new PatternHolder(Pattern.compile("(mouse|cat|dog|wolf|bear|human)")); context.assertNotNull(pH.getPattern()); }