@@ -0,0 +1,1705 @@
+/*%0A * Copyright 2016-2017 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.example;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport org.springframework.boot.context.embedded.LocalServerPort;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.boot.test.context.SpringBootTest.WebEnvironment;%0Aimport org.springframework.boot.test.web.client.TestRestTemplate;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0A/**%0A * @author Dave Syer%0A *%0A */%0A@RunWith(SpringRunner.class)%0A@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)%0Apublic class SampleApplicationTests %7B%0A%0A%09@LocalServerPort%0A%09private int port;%0A%0A%09@Test%0A%09public void words() %7B%0A%09%09assertThat(new TestRestTemplate()%0A%09%09%09%09.getForObject(%22http://localhost:%22 + port + %22/words%22, String.class))%0A%09%09%09%09%09%09.isEqualTo(%22%7B%5C%22value%5C%22:%5C%22foo%5C%22%7D%7B%5C%22value%5C%22:%5C%22bar%5C%22%7D%22);%0A%09%7D%0A%0A%09@Test%0A%09public void uppercase() %7B%0A%09%09assertThat(new TestRestTemplate().postForObject(%0A%09%09%09%09%22http://localhost:%22 + port + %22/uppercase%22, %22%7B%5C%22value%5C%22:%5C%22foo%5C%22%7D%22,%0A%09%09%09%09String.class)).isEqualTo(%22%7B%5C%22value%5C%22:%5C%22FOO%5C%22%7D%22);%0A%09%7D%0A%0A%7D%0A

Add integration tests to the pojo sample