@Test
public void testGetSubResourceDefinitions() throws Exception {

  JobResourceDefinition definition = new JobResourceDefinition();
  Set<SubResourceDefinition> subResourceDefinitions = definition
      .getSubResourceDefinitions();
  Assert.assertEquals(1, subResourceDefinitions.size());
  SubResourceDefinition subResourceDefinition = subResourceDefinitions
      .iterator().next();
  Assert.assertEquals(Resource.Type.TaskAttempt,
      subResourceDefinition.getType());
}