// Path: xmlrpc/src/main/java/nl/nl2312/xmlrpc/Nothing.java
// public static final Nothing NOTHING = new Nothing();


import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import org.junit.Before;
import org.junit.Test;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.http.Body;
import retrofit2.http.POST;
import java.io.IOException;
import static com.google.common.truth.Truth.assertThat;
import static nl.nl2312.xmlrpc.Nothing.NOTHING;
    }

    @Test
    public void sumprodArray() throws IOException {
        SimpleTestService service = retrofit.create(SimpleTestService.class);
        int[] execute = service.sumprodArray(new SumProdArgs(2, 4)).execute().body();
        assertThat(execute).isNotEmpty();
        assertThat(execute[0]).isEqualTo(6);
        assertThat(execute[1]).isEqualTo(8);
    }

    @Test
    public void sumprod() throws IOException {
        SimpleTestService service = retrofit.create(SimpleTestService.class);
        SumProdResponse execute = service.sumprod(new SumProdArgs(2, 4)).execute().body();
        assertThat(execute).isNotNull();
        assertThat(execute.sum).isEqualTo(6);
        assertThat(execute.product).isEqualTo(8);
    }

    @Test
    public void capitalize() throws IOException {
        SimpleTestService service = retrofit.create(SimpleTestService.class);
        String execute = service.capitalize("Hello, World!").execute().body();
        assertThat(execute).isEqualTo("HELLO, WORLD!");
    }

    @Test(expected = IOException.class)
    public void fault() throws IOException {
        SimpleTestService service = retrofit.create(SimpleTestService.class);
// Path: xmlrpc/src/main/java/nl/nl2312/xmlrpc/Nothing.java
// public static final Nothing NOTHING = new Nothing();


// Path: xmlrpc/src/test/java/nl/nl2312/xmlrpc/SimpleIntegrationTest.java
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import org.junit.Before;
import org.junit.Test;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.http.Body;
import retrofit2.http.POST;
import java.io.IOException;
import static com.google.common.truth.Truth.assertThat;
import static nl.nl2312.xmlrpc.Nothing.NOTHING;

    }

    @Test
    public void sumprodArray() throws IOException {
        SimpleTestService service = retrofit.create(SimpleTestService.class);
        int[] execute = service.sumprodArray(new SumProdArgs(2, 4)).execute().body();
        assertThat(execute).isNotEmpty();
        assertThat(execute[0]).isEqualTo(6);
        assertThat(execute[1]).isEqualTo(8);
    }

    @Test
    public void sumprod() throws IOException {
        SimpleTestService service = retrofit.create(SimpleTestService.class);
        SumProdResponse execute = service.sumprod(new SumProdArgs(2, 4)).execute().body();
        assertThat(execute).isNotNull();
        assertThat(execute.sum).isEqualTo(6);
        assertThat(execute.product).isEqualTo(8);
    }

    @Test
    public void capitalize() throws IOException {
        SimpleTestService service = retrofit.create(SimpleTestService.class);
        String execute = service.capitalize("Hello, World!").execute().body();
        assertThat(execute).isEqualTo("HELLO, WORLD!");
    }

    @Test(expected = IOException.class)
    public void fault() throws IOException {
        SimpleTestService service = retrofit.create(SimpleTestService.class);
        service.nonExistentMethod(NOTHING).execute().body();