    @Test
    public void testAgentInvalidity() {

        when(agent1.isValid()).thenReturn(false);
        when(agent2.isValid()).thenReturn(false);

        Result result = healthCheck.execute();

        assertEquals("Status should be OK", Result.Status.OK, result.getStatus());
        assertEquals("Result should be ok", true, result.isOk());
    }