@Test(expected = ConnectionException.class)
public void should_not_get_a_connection_for_url_other_than_demo() throws Exception {

    URL url = new URL("http://something.else");
    DemoConnection connection = plugin.getConnection(url, null);
    assertNull(connection);
}