@Test
public void testStringDifferentEncodings() {

  final URI stringDatatype = URI.create("xs:string");
  final BigInteger expectedUtf8 = new BigInteger("68C3A96C6CC3B807", 16);
  final BigInteger expectedSha = new BigInteger(HASH_OF_TEST_STRING, 16);
  
  List<MyAttributeValue> val = new ArrayList<MyAttributeValue>();
  val.add(MyAttributeEncodingFactory.parseValueFromEncoding(ENCODING_STRING_UTF_8, TEST_STRING, null));
  val.add(MyAttributeEncodingFactory.parseValueFromEncoding(ENCODING_STRING_SHA, TEST_STRING, null));
  val.add(MyAttributeValueFactory.parseValue(stringDatatype, TEST_STRING, null));
  
  for(MyAttributeValue v: val) {
    assertEquals(expectedUtf8, v.getIntegerValueUnderEncoding(ENCODING_STRING_UTF_8));
    assertEquals(expectedSha, v.getIntegerValueUnderEncoding(ENCODING_STRING_SHA));
  }
}