@Test
public void testRepairProcessingMessagesOne() throws Exception {

    Message message = createAndSaveMessages(1, MsgStateEnum.PROCESSING)[0];
    messageService.repairProcessingMessages();
    Message found = messageDao.findMessage(message.getMsgId());
    assertThat(found, notNullValue());
    assertThat(found.getState(), is(MsgStateEnum.PARTLY_FAILED));
}