DatasetProperties props = DatasetProperties.builder().add("prop1", "val1").build();
Assert.assertEquals(HttpStatus.SC_NOT_FOUND, createInstance("dataset1", "datasetType2", props));
deployModule("module1", TestModule1.class);
deployModule("module2", TestModule2.class);
Assert.assertEquals(HttpStatus.SC_OK, createInstance("dataset1", "datasetType2", props));
<BUG>instances = getInstances().value;
Assert.assertEquals(1, instances.size());</BUG>
DatasetSpecification dataset1Spec = createSpec("dataset1", "datasetType2", props);
Assert.assertEquals(dataset1Spec, instances.get(0));
<BUG>DatasetInstanceMeta datasetInfo = getInstance("dataset1").value;
</BUG>
Assert.assertEquals(dataset1Spec, datasetInfo.getSpec());

DatasetProperties props = DatasetProperties.builder().add("prop1", "val1").build();
Assert.assertEquals(HttpStatus.SC_NOT_FOUND, createInstance("dataset1", "datasetType2", props));
deployModule("module1", TestModule1.class);
deployModule("module2", TestModule2.class);
Assert.assertEquals(HttpStatus.SC_OK, createInstance("dataset1", "datasetType2", props));
instances = getInstances().getResponseObject();
Assert.assertEquals(1, instances.size());
DatasetSpecification dataset1Spec = createSpec("dataset1", "datasetType2", props);
Assert.assertEquals(dataset1Spec, instances.get(0));
DatasetInstanceMeta datasetInfo = getInstance("dataset1").getResponseObject();
Assert.assertEquals(dataset1Spec, datasetInfo.getSpec());
