  @Test
  public void testPopulateForHadoop1() {

    JobDetails jd = new JobDetails(null);
    NavigableMap<byte[], byte[]> infoValues = getInfoValues(HadoopVersion.ONE);

    Result result1 = mock(Result.class);
    when(result1.getFamilyMap(Constants.INFO_FAM_BYTES)).thenReturn(infoValues);

    jd.populate(result1);

    // confirm hadoop 1
    confirmHadoopVersion(jd, HadoopVersion.ONE);
    // confirm hadoop1 counters
    confirmHadoop1Counters(jd);
    // confirm job details
    confirmSomeJobDeets(jd);
  }