@Test
public void testGetAllocationFileFromClasspath() {

  Configuration conf = new Configuration();
  conf.set(FairSchedulerConfiguration.ALLOCATION_FILE,
      "test-fair-scheduler.xml");
  AllocationFileLoaderService allocLoader = new AllocationFileLoaderService();
  File allocationFile = allocLoader.getAllocationFile(conf);
  assertEquals("test-fair-scheduler.xml", allocationFile.getName());
  assertTrue(allocationFile.exists());
}