@Test public void shouldGetByCode() throws Exception { repository.getByCode("AB"); verify(mapper).getByCode("AB"); }
public PriceSchedule getByCode(String code) { return mapper.getByCode(code); }
PriceScheduleRepository { public PriceSchedule getByCode(String code) { return mapper.getByCode(code); } }
PriceScheduleRepository { public PriceSchedule getByCode(String code) { return mapper.getByCode(code); }  }
PriceScheduleRepository { public PriceSchedule getByCode(String code) { return mapper.getByCode(code); }  List<PriceSchedule> getAllPriceSchedules(); PriceSchedule getByCode(String code); }
PriceScheduleRepository { public PriceSchedule getByCode(String code) { return mapper.getByCode(code); }  List<PriceSchedule> getAllPriceSchedules(); PriceSchedule getByCode(String code);  }