@Test
public void testPriceEqualsMethod() {

    LegacyAsset base = new LegacyAsset(115, LegacyAssetSymbolType.SBD);
    LegacyAsset quote = new LegacyAsset(100, LegacyAssetSymbolType.STEEM);
    Price price = new Price(base, quote);
    LegacyAsset anotherBase = new LegacyAsset(115, LegacyAssetSymbolType.SBD);
    LegacyAsset anotherQuote = new LegacyAsset(100, LegacyAssetSymbolType.STEEM);
    Price anotherPrice = new Price(anotherBase, anotherQuote);
    LegacyAsset defferentBase = new LegacyAsset(115, LegacyAssetSymbolType.SBD);
    LegacyAsset differentQuote = new LegacyAsset(1230, LegacyAssetSymbolType.STEEM);
    Price differentPrice = new Price(defferentBase, differentQuote);
    assertThat(price.equals(anotherPrice), equalTo(true));
    assertThat(anotherPrice.equals(differentPrice), equalTo(false));
}