diff --git a/Testing/Code/OBIA/otbBandsStatisticsAttributesLabelMapFilter.cxx b/Testing/Code/OBIA/otbBandsStatisticsAttributesLabelMapFilter.cxx
index 69a5037a1741adb609b24e926bdfa0408411f3e0..a698edf4d00a3c3822c06f9776fef96f4d36e624 100644
--- a/Testing/Code/OBIA/otbBandsStatisticsAttributesLabelMapFilter.cxx
+++ b/Testing/Code/OBIA/otbBandsStatisticsAttributesLabelMapFilter.cxx
@@ -25,7 +25,6 @@
 #include "otbImage.h"
 #include "otbVectorImage.h"
 #include "otbImageFileReader.h"
-#include "otbImageFileWriter.h"
 #include "otbAttributesMapLabelObject.h"
 #include "itkLabelImageToLabelMapFilter.h"
 #include "otbBandsStatisticsAttributesLabelMapFilter.h"
@@ -44,8 +43,6 @@ typedef LabelObjectContainerType::const_iterator LabelObjectIterator;
 
 typedef otb::ImageFileReader<VectorImageType>                                      ReaderType;
 typedef otb::ImageFileReader<LabeledImageType>                                     LabeledReaderType;
-typedef otb::ImageFileWriter<VectorImageType>                                      WriterType;
-typedef otb::ImageFileWriter<LabeledImageType>                                     LabeledWriterType;
 
 typedef itk::LabelImageToLabelMapFilter<LabeledImageType,LabelMapType>             LabelMapFilterType;
 typedef otb::BandsStatisticsAttributesLabelMapFilter<LabelMapType,VectorImageType> BandsStatisticsFilterType;