Teste JUnit para System.out.println ()

Eu preciso escrever testes JUnit para um aplicativo antigo que é mal projetado e está escrevendo muitas mensagens de erro para saída padrão. Quando ogetResponse(String request) método se comporta corretamente, retorna uma resposta XML:

@BeforeClass
public static void setUpClass() throws Exception {
    Properties queries = loadPropertiesFile("requests.properties");
    Properties responses = loadPropertiesFile("responses.properties");
    instance = new ResponseGenerator(queries, responses);
}

@Test
public void testGetResponse() {
    String request = "<some>request</some>";
    String expResult = "<some>response</some>";
    String result = instance.getResponse(request);
    assertEquals(expResult, result);
}

Mas quando recebe XML malformado ou não entende o pedido, ele retornanull e escreve algumas coisas na saída padrão.

Existe alguma maneira de afirmar a saída do console no JUnit? Para pegar casos como:

System.out.println("match found: " + strExpr);
System.out.println("xml not well formed: " + e.getMessage());

questionAnswers(12)

yourAnswerToTheQuestion