@Test
public void processNewLineWorksOnSimpleLogEntry() {

  // the following line is sample output from 'logcat -v long'
  myReceiver.processNewLine("[ 1534635551.439 1493:1595 W/EDMNativeHelper     ]");
  assertThat("").isEqualTo(myLogcatListener.toString()); // Nothing written until message is received
  myReceiver.processNewLine("EDMNativeHelperService is published");
  String expected = "2018-08-18 16:39:11.439 1493-1595/dummy.client.name W/EDMNativeHelper: EDMNativeHelperService is published\n";
  assertThat(myLogcatListener.toString()).isEqualTo(expected);
}