@Test
@Theory
public void testNormalizeValue(Operator operator) {

    long num = Random.getLong();
    Object value = null;
    Object expected = null;
    switch (operator) {
    case REGEX:
    case NOT_REGEX:
        value = putNumberWithinPercentSign(num);
        expected = putNumberWithinStarSign(num);
        break;
    case LINKS_TO:
        value = num;
        expected = Link.to(num);
        break;
    default:
        value = num;
        expected = num;
        break;
    }
    Assert.assertEquals(Convert.javaToThrift(expected), TObject
            .alias(operator, Convert.javaToThrift(value)).values()[0]);
}