### Question:
FormDataBuilder { MultiValueMap<String, HttpEntity<?>> buildAccountFormData( final String authenticityToken, final String name, final byte[] image ) { final MultipartBodyBuilder builder = new MultipartBodyBuilder(); builder.part("utf8", "✓"); builder.part("_method", "put"); builder.part("authenticity_token", authenticityToken); builder.part("name", name); final Resource resource = new NamedByteArrayResource(image, "image.png"); builder.part("icon", resource, MediaType.IMAGE_PNG); return builder.build(); } FormDataBuilder(
        final String email,
        final String password
    );   }### Answer:
@Test public void buildAccountFormDataTest() { final byte[] image = new byte[]{0x01, 0x02, 0x03}; final Resource resource = new NamedByteArrayResource(image, "image.png"); final MultiValueMap<String, String> headers = new LinkedMultiValueMap<>(); headers.add(HttpHeaders.CONTENT_TYPE, MediaType.IMAGE_PNG_VALUE); final MultiValueMap<String, HttpEntity<?>> expected = new LinkedMultiValueMap<>(); expected.add("utf8", new HttpEntity<>("✓")); expected.add("_method", new HttpEntity<>("put")); expected.add("authenticity_token", new HttpEntity<>("authenticity_token")); expected.add("name", new HttpEntity<>("homu")); expected.add("icon", new HttpEntity<>(resource, headers)); final var actual = formDataBuilder .buildAccountFormData("authenticity_token", "homu", image); assertEquals(expected, actual); }