*
* @throws Exception if so.
*/
@Test
public void testGetContainerJob() throws Exception {
Hudson hudson = MockUtils.mockHudson();
FreeStyleProject project = mock(FreeStyleProject.class);
when(hudson.getItem("fake")).thenReturn(project);
MetadataJobProperty property = mock(MetadataJobProperty.class);
when(project.getProperty(MetadataJobProperty.class)).thenReturn(property);
MetadataParent<MetadataValue> container = CliUtils.getContainer(null, "fake", null, false);
assertNotNull(container);
assertSame(property, container);