### Question:
NodeManager { private void removeNode(final Node node) { Futures.addCallback(resolveDisconnectedNode(node), new FutureCallback<Boolean>() { @Override public void onSuccess(@Nullable Boolean result) { if (Boolean.TRUE.equals(result)) { LOG.info("Node {} has been removed", node.getNodeId().getValue()); } else { LOG.warn("Failed to remove node {}", node.getNodeId().getValue()); } } @Override public void onFailure(@Nullable Throwable throwable) { LOG.warn("Exception thrown when removing node... {}", throwable); } }, MoreExecutors.directExecutor()); } NodeManager(final DataBroker dataBroker, final BindingAwareBroker.ProviderContext session); void syncNodes(final Node dataAfter, final Node dataBefore);  }### Answer:
@Test public void testRemoveNode() throws Exception { Node testNode = createNode(Connected, IPv4_ADDRESS, NODE_NAME, Capabilities.Full); nodeManager.syncNodes(testNode, null); List<RendererNode> result = rendererNodesReader(); assertNotNull(result); assertTrue(result.size() == 1); nodeManager.syncNodes(null, testNode); result = rendererNodesReader(); assertTrue(result.isEmpty()); }