@Test public void testRhsEmptyProperties_shouldFail() throws Exception { ProcessBag processBag = new ProcessBag(); Map<String, Object> props = Maps.newHashMap(); props.put("a", "b"); processBag.setProperties(props); assertFalse(processBag.equals(new ProcessBag())); }
@Test public void testLhsEmptyProperties_shouldSucceed() throws Exception { ProcessBag processBag = new ProcessBag(); HashMap<String, Object> props = Maps.newHashMap(); props.put("a", "b"); processBag.setProperties(props); assertTrue(new ProcessBag().equals(processBag)); }