    @Test
    public void testFormWithFileAndUri() throws Exception {

        HttpDaemon.registerServlet("/", new HttpServlet() {
            @Override
            public HttpResponse doGet(HttpRequest request) {
                return null;
            }

            @Override
            public HttpResponse doPost(HttpRequest request) {

                request.parseMultipartBody(repository, null);

                String title = request.form().get("fileUri");

                return HttpResponse.newResponse(title);
            }
        });

        Request request = formWithFileAndUriRequest();
        Response response = new OkHttpClient().newCall(request).execute();

        String uri = response.body().string();

        // two files contain same data
        boolean same = Files.equal(fileCopy, file);

        assertThat(same, is(true));
        assertThat(uri, is(file.getAbsolutePath()));
    }