ClusterTag { public String value() { String value = this.config.value(this.cluster); if (value.isEmpty()) { value = this.cluster; } return value; } ClusterTag(final String cluster, final Config config); String name(); String value();  }
@Test public void usesGivenValue() { Assertions.assertThat( new ClusterTag( "blah", new ClusterTagTest.FakeConfig("", "", "blah-sandbox") ).value() ).isEqualTo("blah-sandbox"); }
@Test public void usesClusterNameWhenNoValue() { Assertions.assertThat( new ClusterTag( "blah", new ClusterTagTest.FakeConfig("", "", "") ).value() ).isEqualTo("blah"); }