Collection<TransferEntry> hdfsEntries = TestUtils.readField("hdfsEntries", localResourcesFactoryBeanWithGlobal);
assertNotNull(hdfsEntries);
assertThat(hdfsEntries.size(), is(1));
TransferEntry entry = (TransferEntry) hdfsEntries.toArray()[0];
String path = TestUtils.readField("path", entry);
assertThat(path, is("/tmp/foo.jar"));
LocalResourceType type = TestUtils.readField("type", entry);
assertThat(type, is(LocalResourceType.ARCHIVE));
LocalResourceVisibility visibility = TestUtils.readField("visibility", entry);