@Test
public void testParse() throws Exception {

	JsonFieldParser parser = new JsonFieldParser();
	final JSONObject fieldsJs = ResourceUtil.getJsonObjectFromResource("/json/field/valid-fields.json");
	final Field field = parser.parse(fieldsJs.getJSONObject("customfield_10000"), "customfield_10000");
	assertEquals(1.45, (Double) field.getValue(), 0.001);
	final Field userField = parser.parse(fieldsJs.getJSONObject("customfield_10020"), "customfield_10020");
	assertEquals(TestConstants.USER1, userField.getValue());
}