You invoke answer.setIsTrue(isChecked) method when a checkbox changes its state. Does this method set whether an answer is correct or whether the answer is selected by a user ? If it's the first option I would suggest to add some comment that you are mocking. If it's the second option I would recommend to change a name of the method.