package com.accenture.banking;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class TestApplicationBuilder {

	@Test
	public void contextLoads() {
	}

}

@@ -113,186 +113,780 @@
 rk.b
-oot.test.context.SpringBootTest;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0A@RunWith(SpringRunner.class)%0A@SpringBootTest%0Apublic class TestApplicationBuilder %7B%0A
+eans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.boot.test.web.client.TestRestTemplate;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0Aimport static org.hamcrest.Matchers.*;%0Aimport static org.junit.Assert.*;%0Aimport org.springframework.boot.test.context.SpringBootTest.WebEnvironment;%0A%0A@RunWith(SpringRunner.class)%0A@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)%0Apublic class TestApplicationBuilder %7B%0A%09%0A%09@Autowired%0A%09TestRestTemplate restTemplate;%0A%0A%09@Test%0A%09public void testOfficeById() throws Exception %7B%0A%0A%09%09String response = restTemplate.getForObject(%22http://localhost:8081/offices/1%22, String.class);%0A%09%09%0A%09%09assertThat(response, containsString(%22678678678%22));%09%09%0A%09%7D%09    %0A%09  %09
 %0A%09@T
@@ -922,11 +922,10 @@
 () %7B%0A%09%7D%0A
-%0A
 %7D%0A

add test to prove rest services