ExPrinterWidget extends QuestionWidget implements BinaryDataReceiver, ButtonClickListener { @Override public IAnswerData getAnswer() { return getFormEntryPrompt().getAnswerValue(); } ExPrinterWidget(Context context, QuestionDetails prompt, WaitingForDataRegistry waitingForDataRegistry); @Override void clearAnswer(); @Override IAnswerData getAnswer(); @Override void setBinaryData(Object answer); @Override void setFocus(Context context); @Override boolean onKeyDown(int keyCode, KeyEvent event); @Override void setOnLongClickListener(OnLongClickListener l); @Override void cancelLongPress(); @Override void onButtonClick(int buttonId);  }
@Test @Override public void getAnswerShouldReturnExistingAnswerIfPromptHasExistingAnswer() { IAnswerData newAnswer = getSpyWidget().getAnswer(); assertNull(newAnswer); }