@Test public void returnsAValidHashTypeWithUpperCaseText() throws Exception { HashTypeAdaptor hashTypeAdaptor = new HashTypeAdaptor(); assertThat(hashTypeAdaptor.unmarshal("SHA1"), is(equalTo(HashType.SHA1))); }
@Override public HashType unmarshal(String str) throws Exception { return HashType.valueOf(str.toUpperCase()); }
HashTypeAdaptor extends XmlAdapter<String, HashType> { @Override public HashType unmarshal(String str) throws Exception { return HashType.valueOf(str.toUpperCase()); } }
HashTypeAdaptor extends XmlAdapter<String, HashType> { @Override public HashType unmarshal(String str) throws Exception { return HashType.valueOf(str.toUpperCase()); }  }
HashTypeAdaptor extends XmlAdapter<String, HashType> { @Override public HashType unmarshal(String str) throws Exception { return HashType.valueOf(str.toUpperCase()); }  @Override HashType unmarshal(String str); @Override String marshal(HashType hashType); }
HashTypeAdaptor extends XmlAdapter<String, HashType> { @Override public HashType unmarshal(String str) throws Exception { return HashType.valueOf(str.toUpperCase()); }  @Override HashType unmarshal(String str); @Override String marshal(HashType hashType);  }