@@ -0,0 +1,968 @@
+package de.springbootbuch.extconfig;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.beans.factory.annotation.Value;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.test.context.ActiveProfiles;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0Aimport static org.hamcrest.CoreMatchers.is;%0A%0A@RunWith(SpringRunner.class)%0A@SpringBootTest%0A@ActiveProfiles(%22demo2%22)%0Apublic class NegatedProfilesTest %7B%0A%0A    @Autowired%0A    private ExampleConfiguration exampleConfiguration;%0A    %0A    @Value(%22$%7BsomeValue%7D%22)%0A    private Integer someValue;%0A%0A    @Test%0A    public void negatedProfilesShouldWork() %7B%0A        Assert.assertThat(exampleConfiguration.getGreeting(), is(equalTo(%22Hello, Demo2!%22)));%0A        Assert.assertThat(someValue, is(equalTo(4711)));%0A    %7D%0A%7D%0A

Add test for negated profiles