@Test
public void isEnabledFailed() {

    when(browser.isEnabled(div)).thenReturn(false);
    try {
        assertThat(div, CustomMatchers.isEnabledIn(browser));
        fail("should fail");
    } catch (AssertionError e) {
        assertThat(e.getMessage(), is(equalTo("\nExpected: div is enabled\n     but: div is not enabled")));
    }
}