    @Test
    public void testCreateMessage() {

        int[] patchesPerTool = {1, 5, 10, 15, 20};
        Date now = new Date();
        String message = notifier.createMessage(100, 15, 51, patchesPerTool, now);
        String testMessage = "Summary email from Repairnator. \n\n"
                + "This summary contains the operations of Repairnator between "
                + notifier.lastNotificationTime.getTime().toString()
                + " and "
                + now.toString() + ".\n\n"
                + "Number of analyzed builds: 100\n"
                + "Number of repair attempts made: 15\n"
                + "Total number of builds with patches: 51\n"
                + "Total number of patches found by Tool0: 1\n"
                + "Total number of patches found by Tool1: 5\n"
                + "Total number of patches found by Tool2: 10\n"
                + "Total number of patches found by Tool3: 15\n"
                + "Total number of patches found by Tool4: 20\n";
        assertTrue(message.equals(testMessage));
    }