test_class.declarator: fakeClient
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private OkHttpClient fakeClient;
test_class.type: OkHttpClient
test_class.var_name: fakeClient
test_class.declarator: mockCall
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Call mockCall;
test_class.type: Call
test_class.var_name: mockCall
test_class.declarator: stellarToml =
              "FEDERATION_SERVER = \"https://api.stellar.org/federation\""
test_class.modifier: private final
test_class.original_string: private final String stellarToml =
              "FEDERATION_SERVER = \"https://api.stellar.org/federation\"";
test_class.type: String
test_class.var_name: stellarToml
test_class.declarator: successResponse =
              "{\"stellar_address\":\"bob*stellar.org\",\"account_id\":\"GCW667JUHCOP5Y7KY6KGDHNPHFM4CS3FCBQ7QWDUALXTX3PGXLSOEALY\"}"
test_class.modifier: private final
test_class.original_string: private final String successResponse =
              "{\"stellar_address\":\"bob*stellar.org\",\"account_id\":\"GCW667JUHCOP5Y7KY6KGDHNPHFM4CS3FCBQ7QWDUALXTX3PGXLSOEALY\"}";
test_class.type: String
test_class.var_name: successResponse
test_class.file: kin-sdk/kin-base/src/test/java/kin/base/federation/FederationTest.java
test_class.identifier: FederationTest
test_class.superclass: extends TestCase
test_case.body: @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());
      }
test_case.class_method_signature: FederationTest.testResolveSuccess()
test_case.full_signature: @Test public void testResolveSuccess()
test_case.identifier: testResolveSuccess
test_case.invocations: build request body protocol message code create parse build get url build request body protocol message code create parse build get url thenReturn when execute resolve assertEquals getStellarAddress assertEquals getAccountId assertNull getMemoType assertNull getMemo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testResolveSuccess()
focal_class.file: kin-sdk/kin-base/src/main/java/kin/base/federation/Federation.java
focal_class.identifier: Federation
focal_class.class_method_signature: Federation.Federation()
focal_class.full_signature: private  Federation()
focal_class.identifier: Federation
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Federation()
focal_class.class_method_signature: Federation.resolve(String value)
focal_class.full_signature: public static FederationResponse resolve(String value)
focal_class.identifier: resolve
focal_class.modifiers: public static
focal_class.parameters: (String value)
focal_class.return: FederationResponse
focal_class.signature: FederationResponse resolve(String value)
focal_method.body: public static FederationResponse resolve(String value) {
          String[] tokens = value.split("\\*");
          if (tokens.length == 1) {
              // accountId
              return new FederationResponse(null, value, null, null);
          } else if (tokens.length == 2) {
              String domain = tokens[1];
              FederationServer server = FederationServer.createForDomain(domain);
              return server.resolveAddress(value);
          } else {
              throw new MalformedAddressException();
          }
      }
focal_method.class_method_signature: Federation.resolve(String value)
focal_method.full_signature: public static FederationResponse resolve(String value)
focal_method.identifier: resolve
focal_method.invocations: split createForDomain resolveAddress
focal_method.modifiers: public static
focal_method.parameters: (String value)
focal_method.return: FederationResponse
focal_method.signature: FederationResponse resolve(String value)