import java.io.IOException;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import static java.net.http.HttpRequest.*;
public class PostRequestTest {
public static void main(String[] args) throws IOException, InterruptedException {
BodyPublisher body = BodyPublishers.ofString("{'id':1}");
HttpRequest request = newBuilder()
.POST(body)
.uri(URI.create("http://httpbin.org/post"))
.build();
HttpClient httpClient = HttpClientBuilderTest.createHttpClient();
HttpResponse