@Test
public void openConnection() throws IOException {

    final Handler handler = new Handler();
    Assert.assertNull("Expected null connection from missing configuration", handler.openConnection(new URL("hadoop:file:/path/file.ext")));
    Handler.setConfiguration(new Configuration(false));
    Assert.assertNull("Expected null connection from null url", handler.openConnection(null));
    Assert.assertNull("Expected null connection from file url", handler.openConnection(new URL("file:/path/file.ext")));
    Assert.assertNotNull("Expected non-null connection from hadoop url", handler.openConnection(new URL("hadoop:file:/path/file.ext")));
}