@Test
public void testSecurityProperties() {
SpringApplication app = new SpringApplication(TestConfiguration.class);
app.setWebEnvironment(false);
ConfigurableApplicationContext context = app
.run(new String[] { "--spring.config.name=SpringHadoopSecurityPropertiesTests" });
SpringHadoopProperties properties = context.getBean(SpringHadoopProperties.class);
assertThat(properties, notNullValue());
assertThat(properties.getSecurity(), notNullValue());
assertThat(properties.getSecurity().getAuthMethod(), is(SecurityAuthMethod.KERBEROS));