@Test public void should_return_text_of_JTextComponent() { textField.startRecording(); assertThat(JTextComponentTextQuery.textOf(textField)).isEqualTo(TEXT); textField.requireInvoked("getText"); }