@Test public void shouldReturnKeyAsUppercase() throws Exception { final CurrencyKey sut = new CurrencyKey("eur"); assertThat(sut.getKey(), equalTo("EUR")); }
public String getKey() { return key; }
CurrencyKey { public String getKey() { return key; } }
CurrencyKey { public String getKey() { return key; } CurrencyKey(String key); }
CurrencyKey { public String getKey() { return key; } CurrencyKey(String key); String getKey(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
CurrencyKey { public String getKey() { return key; } CurrencyKey(String key); String getKey(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }