p.put("spring.yarn.client.localizer.rawFileContents." + SpringYarnBootUtils.escapeConfigKey("file1"), new byte[1]);
p.put("spring.yarn.client.localizer.rawFileContents." + SpringYarnBootUtils.escapeConfigKey("file2"), new byte[2]);
p.put("spring.yarn.client.localizer.rawFileContents." + SpringYarnBootUtils.escapeConfigKey("application.properties"), new byte[3]);
builder.properties(p);
SpringApplication app = builder.application();
app.setWebEnvironment(false);
ConfigurableApplicationContext context = app.run(new String[0]);
SpringYarnClientLocalizerProperties properties = context.getBean(SpringYarnClientLocalizerProperties.class);
assertThat(properties, notNullValue());
assertThat(properties.getRawFileContents(), notNullValue());
assertThat(properties.getRawFileContents().size(), is(3));
assertThat(properties.getRawFileContents().get(SpringYarnBootUtils.escapeConfigKey("file1")).length, is(1));