WriteableSubshardBoundaryNode extends WriteableModificationNode { @Override public Map<PathArgument, WriteableModificationNode> getChildrenWithSubshards() { return ImmutableMap.of(); } WriteableSubshardBoundaryNode(final ForeignShardModificationContext boundary); static WriteableSubshardBoundaryNode from(final ForeignShardModificationContext value); @Override PathArgument getIdentifier(); @Override WriteCursorStrategy createOperation(final DOMDataTreeWriteCursor parentCursor); @Override WriteableModificationNode getChild(final PathArgument node); @Override void markDeleted(); @Override Map<PathArgument, WriteableModificationNode> getChildrenWithSubshards();  }
@Test public void getChildrenWithSubshards() throws Exception { final WriteableSubshardBoundaryNode writeableSubshardBoundaryNode = WriteableSubshardBoundaryNode.from(FOREIGN_SHARD_MODIFICATION_CONTEXT); assertNotNull(writeableSubshardBoundaryNode.getChildrenWithSubshards()); assertSame(ImmutableMap.of(), writeableSubshardBoundaryNode.getChildrenWithSubshards()); Assert.assertEquals(TestUtils.DOM_DATA_TREE_IDENTIFIER.getRootIdentifier().getLastPathArgument(), writeableSubshardBoundaryNode.getIdentifier()); assertNull(writeableSubshardBoundaryNode.getChild(mock(PathArgument.class))); }