CheckCloudFoundryConnection implements CommandLineRunner { @Override public void run(String... strings) throws Exception { cloudFoundryClient.info().get(GetInfoRequest.builder().build()).block(Duration.ofMinutes(3)); }  @Override void run(String... strings);  }
@Test public void fail_to_start_app_when_cloudFoundry_cc_API_bad_credentials() { this.thrown.expectCause(isA(UaaException.class)); this.context = new SpringApplicationBuilder(TestConfiguration.class).web(WebApplicationType.NONE).run(); }