    @Test
    public void shouldHandleExceptionWhenElementHasStaleReference() {

        when(mockElement.getAttribute("innerHTML")).thenThrow(new StaleElementReferenceException("stale"));
        InnerHtmlContainsCondition condition = new InnerHtmlContainsCondition("blah");
        assertThat(condition.apply(mockElement), equalTo(false));
    }