public static Status valueOf(int number)
        {
            switch (number)
            {
                case 0:
                    return PENDING;
                case 1:
                    return STARTED;
                case 2:
                    return COMPLETED;
            }
            return null;
        }
Bar - for testing

@author David Yu
@created Nov 10, 2009
protostuff-runtime/src/test/java/io/protostuff/runtime/Bar.java