private void executeEscapeTest(String aValue, String aExpectedVal) {
    String name = "AttrName";
    StorageAttribute sa = new StorageAttribute(name, aValue, StorageAttribute.INT_TYPE);

    try {
      assertTrue(name.equals(sa.getName()));
      assertTrue(sa.getEscapedValue().equals(aExpectedVal));
    } catch (StorageException se) {
      assertTrue("Escape fail: " + se.getMessage() + "Val: '" + aValue + "'", false);
    }
  }