### Question:
NodeOperEvent extends DtoChangeEvent<Node> { public boolean isAfterConnected() { return isConnected(after); } NodeOperEvent(InstanceIdentifier<Node> iid, Node before, Node after); boolean isAfterConnected(); boolean isBeforeConnected();  }### Answer:
@Test public void testIsAfterConnected() { Node node = new NodeBuilder().setKey(NODE_KEY) .addAugmentation(NetconfNode.class, NETCONF_NODE_AUG_CONNECTED) .build(); NodeOperEvent event = new NodeOperEvent(NODE_IID, null, node); Assert.assertTrue(event.isAfterConnected()); }
@Test public void testIsAfterConnected_false() { Node node = new NodeBuilder().setKey(NODE_KEY) .addAugmentation(NetconfNode.class, NETCONF_NODE_AUG_CONNECTING) .build(); NodeOperEvent event = new NodeOperEvent(NODE_IID, null, node); Assert.assertFalse(event.isAfterConnected()); }