@Test
public void testResolveSuccess() throws IOException {

    Response mockResponseToml = new Response.Builder()
            .code(200)
            .message("OK")
            .protocol(Protocol.HTTP_1_1)
            .body(ResponseBody.create(MediaType.parse("application/json"), stellarToml))
            .request(new Request.Builder()
                    .url("http://www.test.com")
                    .get()
                    .build())
            .build();
    Response mockResponseSuccess = new Response.Builder()
            .code(200)
            .message("OK")
            .protocol(Protocol.HTTP_1_1)
            .body(ResponseBody.create(MediaType.parse("application/json"), successResponse))
            .request(new Request.Builder()
                    .url("http://www.test.com")
                    .get()
                    .build())
            .build();
    when(mockCall.execute()).thenReturn(mockResponseToml, mockResponseSuccess);
    FederationResponse response = Federation.resolve("bob*stellar.org");
    assertEquals(response.getStellarAddress(), "bob*stellar.org");
    assertEquals(response.getAccountId(), "GCW667JUHCOP5Y7KY6KGDHNPHFM4CS3FCBQ7QWDUALXTX3PGXLSOEALY");
    assertNull(response.getMemoType());
    assertNull(response.getMemo());
}