class DemoApplicationProperties {

    public List<String> getEmailAddresses() {
        return emailAddresses;
    }

}

class DemoApplicationPropertiesTest {

    @Autowired
    private DemoApplicationProperties demoApplicationProperties;

    @Test
    public void getEmailAddresses_DefaultValueMustBeOverwrittenByValuesInPropertiesFile() {

        //When
        List<String> emailAddresses = demoApplicationProperties.getEmailAddresses();
        //Then
        assertThat(emailAddresses).containsOnly("shazin.sadakath@gmail.com", "shazin.swe@gmail.com");
    }

}