@Test(dataProvider = "toStringData")
public void toStringShouldContainStringRepresentationsOfObjectAndCount(Object obj, long count) {

  // given
  RankableObjectWithFields r = new RankableObjectWithFields(obj, count);
  // when
  String strRepresentation = r.toString();
  // then
  assertThat(strRepresentation).contains(obj.toString()).contains("" + count);
}