Interpolate2Real extends Interpolate<RealParameter, RealLiteral> implements RealParameter { @Override public String toString() { return "NA"; } Interpolate2Real(RealLiteral fallback);  Interpolate2Real(InterpolateType expr); @Override Double getValue(ResultSet rs, long fid); @Override Double getValue(Map<String,Object> map); @Override void setFallbackValue(RealLiteral l); @Override void addInterpolationPoint(InterpolationPoint<RealParameter> point); @Override String toString(); @Override void setContext(RealParameterContext ctx); @Override RealParameterContext getContext(); @Override int compareTo(Object o);  }
@Test public void testInterpolateWKN() throws Exception { ModeType.fromValue(Interpolate.InterpolationMode.COSINE.toString().toLowerCase()); ModeType.fromValue(Interpolate.InterpolationMode.LINEAR.toString().toLowerCase()); ModeType.fromValue(Interpolate.InterpolationMode.CUBIC.toString().toLowerCase()); try{ ModeType.fromValue(Interpolate.InterpolationMode.COSINE.toString()); fail(); } catch (IllegalArgumentException e){ } try{ ModeType.fromValue(Interpolate.InterpolationMode.LINEAR.toString()); fail(); } catch (IllegalArgumentException e){ } try{ ModeType.fromValue(Interpolate.InterpolationMode.CUBIC.toString()); fail(); } catch (IllegalArgumentException e){ } assertTrue(true); }