@RunWith(Arquillian.class)
public class BlobstoreServeTest extends SimpleBlobstoreTestBase {
@Test
@RunAsClient
public void testUploadedFileHasCorrectContent_upload(@ArquillianResource URL url) throws Exception {
FileUploader fileUploader = new FileUploader();
String uploadUrl = fileUploader.getUploadUrl(new URL(url, "getUploadUrl"));
final String blobKey = fileUploader.uploadFile(uploadUrl, "file", FILENAME, CONTENT_TYPE, UPLOADED_CONTENT);
final String content = new String(UPLOADED_CONTENT);
final URI uri = new URL(url, "blobserviceserve?blobKey=" + blobKey).toURI();
try (CloseableHttpClient client = HttpClients.createDefault()) {
doTest(client, uri, null, null, content);