### Question:
CrontabRepository { public void replace(Crontab before, Crontab after) { if (isAlreadyRegistered(before)) { remove(before); } add(after); } CrontabRepository(List<Crontab> crontabLines); List<Crontab> getCrontabLines(); Crontab find(Crontab crontab); void add(Crontab crontab); void remove(Crontab crontab); void replace(Crontab before, Crontab after); boolean isAlreadyRegistered(Crontab crontab);  }### Answer:
@Test public void replace_A$Crontab$Crontab() throws Exception { String arg0 = "0 1 * * * hoge.foo.Var server1"; String arg1 = "interval:5sec initial:16sec hoge.foo.Var server1"; repos.replace(parser.parseLine(new RawCrontabLine(arg0)), parser.parseLine(new RawCrontabLine(arg1))); }