RepositoryCapabilities { public boolean capableOf(String capability) { return capabilities.contains(capability); } RepositoryCapabilities(Object... capabilities); boolean capableOf(String capability);  }
@Test public void shouldReturnTrueWhenCapabilityHasBeenSpecified() { RepositoryCapabilities capabilities = new RepositoryCapabilities("SUPERPOWER"); boolean capable = capabilities.capableOf("SUPERPOWER"); assertThat(capable).isTrue(); }
@Test public void shouldReturnFalesWhenAskingForUnspecifiedCapability() { RepositoryCapabilities capabilities = new RepositoryCapabilities("SUPERPOWER"); boolean capable = capabilities.capableOf("STRANGE_SUPERPOWER"); assertThat(capable).isFalse(); }