### Question:
RankRepository { public void save(Rank rank) { ebeanServer.save(rank); }  void save(Rank rank); List<Rank> findAll();  }### Answer:
@Test public void save() { Rank owner = new Rank(true, "Admin", "Admin", Collections.emptySet()); Rank vip = new Rank(false, "Vip", "Vip", new HashSet<>(Arrays.asList("vip.a", "vip.b"))); Rank mvp = new Rank(false, "MVP", "MVP", new HashSet<>(Arrays.asList("mvp.a", "mvp.b"))); Rank moderator = new Rank(false, "Moderator", "Moderator", new HashSet<>(Arrays.asList("moder.ban", "moder.kick"))); owner.setChild(moderator); moderator.setChild(mvp); mvp.setChild(vip); repository.save(vip); repository.save(mvp); repository.save(moderator); repository.save(owner); List<Rank> ranks = repository.findAll(); assertTrue(ranks.contains(owner)); assertTrue(ranks.contains(vip)); assertTrue(ranks.contains(mvp)); assertTrue(ranks.contains(moderator)); assertEquals(moderator, owner.getChild()); assertEquals(mvp, moderator.getChild()); assertEquals(vip, mvp.getChild()); }