FavoriteSurface { public boolean isEmpty() { return surface == null && surfaceGroup == null && !allRounder && !none; } FavoriteSurface(PlayerPerformance performance); Surface getSurface(); SurfaceGroup getSurfaceGroup(); boolean isAllRounder(); boolean isNone(); String getCode(); double getSpecialization(); boolean isEmpty(); @Override String toString();  }
@Test void notEnoughMatchesNoFavoriteSurface() { FavoriteSurface favoriteSurface = new FavoriteSurface(performance( new WonLost(0, 1), new WonLost(1, 1), new WonLost(1, 1), new WonLost(0, 0) )); assertThat(favoriteSurface.isEmpty()).isTrue(); assertThat(favoriteSurface).hasToString(""); }