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

  File f = new File("src/test/resources/nvidia-smi-output-excerpt.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());
  assertFirstGpu(info.getGpus().get(0));
  assertSecondGpu(info.getGpus().get(1));
}