PlayerData { @Override public String toString() { return String.format( "PlayerData[Plots:%s, " + "Score:%s, " + "LinesRemoved:%s, " + "NextLevelIngoingCriteria:'%s', " + "CurrentLevel:%s, " + "Info:'%s']", plots.toString(), score, linesRemoved, nextLevelIngoingCriteria, level, getInfo()); } PlayerData(List<Plot> plots, int score, int linesRemoved,
               String nextLevelIngoingCriteria, int level, String info); List<Plot> getPlots(); int getScore(); int getLinesRemoved(); String getNextLevelIngoingCriteria(); int getLevel(); @Override String toString(); String getInfo();  }
@Test public void shouldPrintablePlayerData(){ LinkedList<Plot> plots = new LinkedList<Plot>(); PlayerData data = new PlayerData(plots, 1, 2, "qwe", 3, "+100"); assertEquals("PlayerData[Plots:[], " + "Score:1, " + "LinesRemoved:2, " + "NextLevelIngoingCriteria:'qwe', " + "CurrentLevel:3, " + "Info:'+100']", data.toString()); }