diff --git a/Modules/Filtering/ColorMap/test/otbScalarToRainbowRGBPixelFunctorNew.cxx b/Modules/Filtering/ColorMap/test/otbScalarToRainbowRGBPixelFunctorNew.cxx
index 842c9e751bbd5989a3967519bdd0f5737e0188c3..5046235a62e85f44ea3051588b96a13e7376a52c 100644
--- a/Modules/Filtering/ColorMap/test/otbScalarToRainbowRGBPixelFunctorNew.cxx
+++ b/Modules/Filtering/ColorMap/test/otbScalarToRainbowRGBPixelFunctorNew.cxx
@@ -39,8 +39,8 @@ int otbScalarToRainbowRGBPixelFunctorNew(int itkNotUsed(argc), char * itkNotUsed
   typedef itk::UnaryFunctorImageFilter<ImageType,
       RGBImageType, ColorMapFunctorType> ColorMapFilterType;
   ColorMapFilterType::Pointer colormapper = ColorMapFilterType::New();
-  colormapper->GetFunctor().SetMaximum(150);
-  colormapper->GetFunctor().SetMinimum(70);
+  colormapper->GetFunctor().SetMaximumInputValue(150);
+  colormapper->GetFunctor().SetMinimumInputValue(70);
 
   std::cout << colormapper << std::endl;