@Test
  public void testTransformByScale() throws TransformationException {

    // need to be sure we'll have the german version
    String existingscale = "scale/humidex_de.scale";
    String source = "10";
    String transformedResponse = processor.transform(existingscale, source);
    Assert.assertEquals("nicht wesentlich", transformedResponse);

    existingscale = "scale/limits.scale";
    source = "10";
    transformedResponse = processor.transform(existingscale, source);
    Assert.assertEquals("middle", transformedResponse);
  }
  @Test
  public void testTransformByScaleUndef() throws TransformationException {

    // check that for undefined/non numeric value we return empty string
    // Issue #1107
    String existingscale = "scale/humidex_fr.scale";
    String source = "-";
    String transformedResponse = processor.transform(existingscale, source);
    Assert.assertEquals("", transformedResponse);
  }
  @Test
  public void testTransformByScaleLimits() throws TransformationException {
    String existingscale = "scale/limits.scale";

    // Testing upper bound opened range
    String source = "500";
    String transformedResponse = processor.transform(existingscale, source);
    Assert.assertEquals("extreme", transformedResponse);

    // Testing lower bound opened range
    source = "-10";
    transformedResponse = processor.transform(existingscale, source);
    Assert.assertEquals("low", transformedResponse);

    // Testing unfinite up and down range
    existingscale = "scale/catchall.scale";
    source = "-10";
    transformedResponse = processor.transform(existingscale, source);
    Assert.assertEquals("catchall", transformedResponse);
  }
  @Test
  public void testTransformByScaleErrorInBounds() throws TransformationException {

    // the tested file contains inputs that generate a conversion error of the bounds
    // of range
    String existingscale = "scale/erroneous.scale";
    String source = "15";
    try {
      @SuppressWarnings("unused")
      String transformedResponse = processor.transform(existingscale, source);
      fail();
    } catch (TransformationException e) {
      // awaited result
    }
  }