@Test
public void apiEndpointPropagated() throws Exception {

    XingApi api1 = new XingApi.Builder()
          .custom()
          .apiEndpoint(HttpUrl.parse("http://test.com/"))
          .build();
    assertThat(api1.apiEndpoint().toString()).isEqualTo("http://test.com/");
    XingApi api2 = new XingApi.Builder()
          .custom()
          .apiEndpoint("https://test2.com/")
          .build();
    assertThat(api2.apiEndpoint().toString()).isEqualTo("https://test2.com/");
}