@Test
public void testToMap() {

  ContextTransformer transformer = createStrictMock(ContextTransformer.class);
  expect(transformer.getKey()).andReturn("data").times(1);
  replayAll();
  EqualsPredicate predicate = new EqualsPredicate(transformer, "value");
  Map<String, Object> actualMap = predicate.toMap();
  verifyAll();
  Map<String, Object> expectedMap = new HashMap<String, Object>();
  expectedMap.put("equals", new ArrayList<String>(Arrays.asList("data", "value")));
  Assert.assertEquals(expectedMap, actualMap);
}