private static <T> T eq(T object) { reportMatcher(new Equals(object)); return object; }
public void testReportMatcher() { Map<?, ?> mockMap = AndroidMock.createMock(Map.class); AndroidMock.reportMatcher(new Equals(null)); AndroidMock.expect(mockMap.get(null)).andReturn(null); AndroidMock.replay(mockMap); }