### Question:
SimonPattern implements SimonFilter { public static SimonPattern createForStopwatch(String pattern) { return createForType(pattern, Stopwatch.class); } SimonPattern(String pattern);  SimonPattern(String pattern, Class<? extends Simon> expectedType); static SimonPattern create(String pattern); static SimonPattern createForCounter(String pattern); static SimonPattern createForStopwatch(String pattern); @Override /** * Checks if Simon's name matches this pattern. * * @param simon Simon to be tested * @return true if Simon's name matches this pattern */ boolean accept(Simon simon); boolean matches(String name); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testSameStopwatchPatternAreEquals() { String pattern = "*abc*"; SimonPattern pattern1 = SimonPattern.createForStopwatch(pattern); SimonPattern pattern2 = SimonPattern.createForStopwatch(pattern); Assert.assertEquals(pattern1, pattern2); }