@Test
public void testParseMissingInnerTags() throws IOException, YarnException {

  File f =new File("src/test/resources/nvidia-smi-output-missing-tags2.xml");
  String s = FileUtils.readFileToString(f, UTF_8);
  GpuDeviceInformationParser parser = new GpuDeviceInformationParser();
  GpuDeviceInformation info = parser.parseXml(s);
  assertEquals("375.66", info.getDriverVersion());
  assertEquals(2, info.getGpus().size());
  PerGpuDeviceInformation gpu = info.getGpus().get(0);
  assertEquals("Tesla P100-PCIE-12GB", gpu.getProductName());
  assertEquals("GPU-28604e81-21ec-cc48-6759-bf2648b22e16", gpu.getUuid());
  assertEquals(0, gpu.getMinorNumber());
  assertEquals(-1, gpu.getGpuMemoryUsage().getTotalMemoryMiB());
  assertEquals(-1, (long) gpu.getGpuMemoryUsage().getUsedMemoryMiB());
  assertEquals(-1, (long) gpu.getGpuMemoryUsage().getAvailMemoryMiB());
  assertEquals(0f,
      gpu.getGpuUtilizations().getOverallGpuUtilization(), DELTA);
  assertEquals(Float.MIN_VALUE,
      gpu.getTemperature().getCurrentGpuTemp(), DELTA);
  assertEquals(Float.MIN_VALUE,
      gpu.getTemperature().getMaxGpuTemp(), DELTA);
  assertEquals(Float.MIN_VALUE,
      gpu.getTemperature().getSlowThresholdGpuTemp(),
      DELTA);
  assertSecondGpu(info.getGpus().get(1));
}