### Question:
MatchupPatternNoPmw extends AbstractImplicitRule { static long removePmwPatterns(long pattern) { long pattern1 = pattern; final long tmiPattern = 4194304L; if((pattern1 & tmiPattern) == tmiPattern) { pattern1 ^= tmiPattern; } final long amsrePattern = 8388608L; if((pattern1 & amsrePattern) == amsrePattern) { pattern1 ^= amsrePattern; } return pattern1; }  @Override Array apply(Array sourceArray, Item sourceColumn);  }### Answer:
@Test public void testRemovePmwPatterns() throws Exception { assertEquals(1170654428143681538L, MatchupPatternNoPmw.removePmwPatterns(1170654428156264450L)); assertEquals(5782340446571069473L, MatchupPatternNoPmw.removePmwPatterns(5782340446583652385L)); assertEquals(1170654428143681569L, MatchupPatternNoPmw.removePmwPatterns(1170654428152070177L)); assertEquals(5782340446571069442L, MatchupPatternNoPmw.removePmwPatterns(5782340446583652354L)); }