Cluster { public String getID() { return this.id; } Cluster(SolrManager solrManager, String id); Status getStatus(); String getID(); void uploadConfiguration(String config_name, String path_config_zip); void deleteConfiguration(String config_name); @SuppressWarnings("unchecked") List<String> listCollections(); Collection getCollection(String collection_name); void clean(); Collection createCollection(String collection_name, String config_name); void waitTillReady(long interval);  }
@Test public void test_correct_id_returned() throws URISyntaxException, SolrServerException { WHEN.create_deletion_manager(); THEN.create_cluster(mockedDeletionManager, "some_id", "some_name", "some_size"); assertEquals("some_id", cluster.getID()); }