@@ -0,0 +1,2320 @@
+package org.springframework.test.integration;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.io.IOException;%0Aimport java.util.concurrent.Callable;%0Aimport java.util.concurrent.Executors;%0Aimport java.util.concurrent.Future;%0Aimport java.util.concurrent.TimeUnit;%0A%0Aimport org.junit.AfterClass;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.springframework.bootstrap.SpringApplication;%0Aimport org.springframework.context.ConfigurableApplicationContext;%0Aimport org.springframework.http.HttpStatus;%0Aimport org.springframework.http.MediaType;%0Aimport org.springframework.http.ResponseEntity;%0Aimport org.springframework.http.client.ClientHttpResponse;%0Aimport org.springframework.site.configuration.ApplicationConfiguration;%0Aimport org.springframework.web.client.DefaultResponseErrorHandler;%0Aimport org.springframework.web.client.RestTemplate;%0A%0Apublic class StaticAssetRequestMappingTest %7B%0A%0A%09private static ConfigurableApplicationContext context;%0A%0A%09@BeforeClass%0A%09public static void start() throws Exception %7B%0A%09%09Future%3CConfigurableApplicationContext%3E future = Executors%0A%09%09%09%09.newSingleThreadExecutor().submit(%0A%09%09%09%09%09%09new Callable%3CConfigurableApplicationContext%3E() %7B%0A%09%09%09%09%09%09%09@Override%0A%09%09%09%09%09%09%09public ConfigurableApplicationContext call() throws Exception %7B%0A%09%09%09%09%09%09%09%09return (ConfigurableApplicationContext) SpringApplication%0A%09%09%09%09%09%09%09%09%09%09.run(ApplicationConfiguration.class);%0A%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%7D);%0A%09%09context = future.get(30, TimeUnit.SECONDS);%0A%09%7D%0A%0A%09@AfterClass%0A%09public static void stop() %7B%0A%09%09if (context != null) %7B%0A%09%09%09context.close();%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void getStyleSheet() throws Exception %7B%0A%09%09ResponseEntity%3CString%3E response = getRestTemplate().getForEntity(%0A%09%09%09%09%22http://localhost:8080/css/getting-started.css%22, String.class);%0A%09%09assertEquals(HttpStatus.OK, response.getStatusCode());%0A%09%09assertTrue(response.getHeaders().getContentType()%0A%09%09%09%09.isCompatibleWith(MediaType.valueOf(%22text/css%22)));%0A%09%09assertTrue(response.getBody().contains(%22h1,h2,h3,h4,h5,h6%22));%0A%09%7D%0A%0A%09private RestTemplate getRestTemplate() %7B%0A%09%09RestTemplate restTemplate = new RestTemplate();%0A%09%09restTemplate.setErrorHandler(new DefaultResponseErrorHandler() %7B%0A%09%09%09@Override%0A%09%09%09public boolean hasError(ClientHttpResponse response) throws IOException %7B%0A%09%09%09%09return false;%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09return restTemplate;%0A%09%7D%0A%0A%7D

Fix mime type for css (and test)