@Test
public void testGetContainerNoMetadataOnNodeCreate() throws Exception {
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);
when(describableList.get(MetadataNodeProperty.class)).thenReturn(null);
MetadataParent container = CliUtils.getContainer("theNode", null, null, true);
assertNotNull(container);
verify(describableList).add(same(container));
assertSame(node, Whitebox.getInternalState(container, "node"));