"2$", volume = "350ml", createdAt = 1539522908 ) val expected = Heineken( price = "3$", volume = "350ml", createdAt = 1539522908 ) assertThat(actual) .isEqualToIgnoringGivenFields(expected, “price”) assertThat(actual) .isEqualToComparingOnlyGivenFields(expected, "price") }