@Test public void get() { ScriptParameterType type = ScriptParameterType.get("DECIMAL"); assertEquals(ScriptParameterType.DECIMAL, type); try { type = ScriptParameterType.get("UNKNOWN"); fail("Exception should be thrown because of unknown parameter type."); } catch (final IllegalArgumentException ex) { // OK } } }