BeanCatalogService implements CatalogService { @Override public Mono<Catalog> getCatalog() { return Mono.just(catalog); } BeanCatalogService(Catalog catalog); @Override Mono<Catalog> getCatalog(); @Override Mono<ServiceDefinition> getServiceDefinition(final String serviceId);  }
@Test public void catalogIsReturnedSuccessfully() { assertThat(service.getCatalog().block()).isEqualTo(catalog); }