package org.knowm.xchange.bitmex.dto;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import org.knowm.xchange.bitmex.dto.account.BitmexAccount;

import java.io.IOException;
import java.io.InputStream;

/**
 * Test BitstampTicker JSON parsing
 */
public class BitmexAccountJSONTest {

  @Test
  public void testUnmarshal() throws IOException {

    // Read in the JSON from the example resources
    InputStream is = BitmexAccountJSONTest.class.getResourceAsStream("/account/example-account.json");

    ObjectMapper mapper = new ObjectMapper();
    BitmexAccount bitmexAccount = mapper.readValue(is, BitmexAccount.class);

    // Verify that the example data was unmarshalled correctly
    assertThat(bitmexAccount.getFirstname()).isEqualTo("string");
    assertThat(bitmexAccount.getLastname()).isEqualTo("string");
    assertThat(bitmexAccount.getId()).isEqualTo(0);
    assertThat(bitmexAccount.getOwnerId()).isEqualTo(0);
    assertThat(bitmexAccount.getEmail()).isEqualTo("string");
    assertThat(bitmexAccount.getUsername()).isEqualTo("string");
    assertThat(bitmexAccount.getPhone()).isEqualTo("string");
  }

}
@@ -43,53 +43,117 @@
 ort 
-com.fasterxml.jackson.databind.ObjectMapper
+static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream
 ;%0A
+%0A
 impo
@@ -242,55 +242,51 @@
 ort 
-java.io.IOException;%0Aimport java.io.InputStream
+com.fasterxml.jackson.databind.ObjectMapper
 ;%0A%0A/

Fix build