Hudson hudson = MockUtils.mockHudson();
Node node = mock(Node.class);
when(hudson.getNode("theNode")).thenReturn(node);
DescribableList describableList = mock(DescribableList.class);
when(node.getNodeProperties()).thenReturn(describableList);
MetadataNodeProperty property = mock(MetadataNodeProperty.class);
when(describableList.get(MetadataNodeProperty.class)).thenReturn(property);
MetadataParent container = CliUtils.getContainer("theNode", null, null, false);
assertNotNull(container);
assertSame(property, container);
}