BackendManager { public static CloudnameBackend getBackend(final String url) { if (url == null) { return null; } final BackendUrl backendUrl = new BackendUrl(url); if (!drivers.containsKey(backendUrl.name)) { return null; } return drivers.get(backendUrl.name).apply(backendUrl.connectionString); } private  BackendManager(); static CloudnameBackend getBackend(final String url); static void register(
            final String backendIdentifier, final Function<String, CloudnameBackend> createMethod); static void deregister(final String backendIdentifer);  }
@Test (expected = IllegalArgumentException.class) public void invalidDriverUrl() { BackendManager.getBackend(":/some-random-string"); }
@Test public void nullDriverUrl() { assertThat(BackendManager.getBackend(null), is(nullValue())); }