</BUG>
@LocalServerPort
private int port;
@Before
public void setup() {
<BUG>this.rest = WebClient.builder()

.baseUrl("http://localhost:" + port)

.defaultHeader("Accept", MediaType.APPLICATION_JSON_VALUE)</BUG>
.build();

@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class SecurityTests {
private static final Duration ONE_SECOND = Duration.ofSeconds(1);
private static final ResolvableType MAP_OF_STRING_STRING = ResolvableType.forClassWithGenerics(Map.class, String.class, String.class);
private WebTestClient rest;
@LocalServerPort
private int port;
@Before
public void setup() {
this.rest = WebTestClient.bindToServer()
.baseUrl("http://localhost:" + this.port)
.build();
