@Test
public void testFromYarnQueueInfo() {

  org.apache.hadoop.yarn.api.records.QueueInfo queueInfo = Records
      .newRecord(org.apache.hadoop.yarn.api.records.QueueInfo.class);
  queueInfo.setQueueState(org.apache.hadoop.yarn.api.records.QueueState.STOPPED);
  org.apache.hadoop.mapreduce.QueueInfo returned =
    TypeConverter.fromYarn(queueInfo, new Configuration());
  Assert.assertEquals("queueInfo translation didn't work.",
    returned.getState().toString(), queueInfo.getQueueState().toString().toLowerCase());
}