### Question:
BookResult { public void setTotalBooked(Long totalBooked) { this.totalBooked = totalBooked; } BookResult(String bookId, Long totalBooked); void setTotalBooked(Long totalBooked); String getBookId(); Long getTotalBooked();  }### Answer:
@Test public void setTotalBooked() { Long bkQty = (long) 10, setQty = (long) 20; BookResult bkres1 = new BookResult("test_bkid_1", bkQty); bkres1.setTotalBooked(setQty); assertNotNull(bkres1); assertEquals(setQty, bkres1.getTotalBooked()); }