@Test
public void getReturnsExpected() {

    // MongoDB config acts as sample.
    final JsonObject expectedMongoDbServiceConfigJsonObject = JsonObject.newBuilder()
            .set("ditto-mongodb-staging", JsonObject.newBuilder()
                    .set("binding_name", JsonValue.nullLiteral())
                    .set("credentials", JsonObject.newBuilder()
                            .set("readonly", false)
                            .set("replicaset", "stretched-0815")
                            .build())
                    .set("instance_name", "ditto-mongodb-staging")
                    .set("label", "MongoDB-Service")
                    .set("name", "ditto-mongodb-staging")
                    .set("plan", "Database on Dedicated Replica Set - Stretched")
                    .set("provider", JsonValue.nullLiteral())
                    .set("syslog_drain_url", JsonValue.nullLiteral())
                    .set("tags", JsonArray.newBuilder()
                            .add("mongodb", "mongo", "database", "db", "mongoose")
                            .build())
                    .set("volume_mounts", JsonArray.empty())
                    .build())
            .build();
    final ConfigValue expectedMongoDbServiceConfig =
            ConfigFactory.parseString(expectedMongoDbServiceConfigJsonObject.toString()).root();
    final Config actual = underTest.apply(knownSystemVcapServicesString);
    assertThat(actual.getValue("MongoDB-Service")).isEqualTo(expectedMongoDbServiceConfig);
}