A better assert would be (using Hamcrest):
    assertThat(errorMail.getMsg(), startsWith(expectedGETMsg()))