### Question:
RemoveNodeTask extends AbstractGroupConfigChangeTask { @Override public boolean isTargetNode(NodeId nodeId) { return this.nodeId.equals(nodeId); } RemoveNodeTask(GroupConfigChangeTaskContext context, NodeId nodeId); @Override boolean isTargetNode(NodeId nodeId); @Override synchronized void onLogCommitted(); @Override String toString();  }### Answer:
@Test public void testIsTargetNode() { RemoveNodeTask task = new RemoveNodeTask( new WaitableGroupConfigChangeTaskContext(), NodeId.of("D") ); Assert.assertTrue(task.isTargetNode(NodeId.of("D"))); Assert.assertFalse(task.isTargetNode(NodeId.of("E"))); }