@Test
public void testStringSha256() {

  // We have that  SHA-256(TEST_STRING) == 1a1c79...
  final  BigInteger expectedHex = new BigInteger(HASH_OF_TEST_STRING, 16);
  // same in decimal
  final BigInteger expectedDec = new BigInteger(HASH_OF_TEST_STRING_DECIMAL);
  assertEquals(expectedHex, expectedDec);
  
  MyAttributeValue v = MyAttributeEncodingFactory.parseValueFromEncoding(ENCODING_STRING_SHA, TEST_STRING, null);
  
  assertEquals(v.getIntegerValueOrNull(), expectedHex);
}