@Test
public void testGetSensorType() {

    Product sourceProduct = new Product("test", "test", 1, 1);
    for (String bandName : MphChlConstants.MERIS_REQUIRED_RADIANCE_BAND_NAMES) {
        sourceProduct.addBand(bandName, ProductData.TYPE_FLOAT32);
    }
    Sensor sensor = MphChlOp.getSensorType(sourceProduct);
    assertEquals(sensor, Sensor.MERIS_3RD);
    sourceProduct = new Product("test2", "test2", 1, 1);
    for (String bandName : MphChlConstants.MERIS_REQUIRED_RADIANCE_BAND_NAMES_4TH) {
        sourceProduct.addBand(bandName, ProductData.TYPE_FLOAT32);
    }
    sensor = MphChlOp.getSensorType(sourceProduct);
    assertEquals(sensor, Sensor.MERIS_4TH);
    sourceProduct = new Product("test3", "test3", 1, 1);
    for (String bandName : MphChlConstants.OLCI_REQUIRED_RADIANCE_BAND_NAMES) {
        sourceProduct.addBand(bandName, ProductData.TYPE_FLOAT32);
    }
    sensor = MphChlOp.getSensorType(sourceProduct);
    assertEquals(sensor, Sensor.OLCI);
    sourceProduct = new Product("test4", "test4", 1, 1);
    for (String bandName : MphChlConstants.MERIS_REQUIRED_BRR_BAND_NAMES) {
        sourceProduct.addBand(bandName, ProductData.TYPE_FLOAT32);
    }
    sourceProduct.addBand(SensorConstants.MERIS_L1B_FLAGS_NAME, ProductData.TYPE_UINT8);
    sensor = MphChlOp.getSensorType(sourceProduct);
    assertEquals(sensor, Sensor.MERIS_3RD);
    sourceProduct = new Product("test5", "test5", 1, 1);
    for (String bandName : MphChlConstants.MERIS_REQUIRED_BRR_BAND_NAMES) {
        sourceProduct.addBand(bandName, ProductData.TYPE_FLOAT32);
    }
    sourceProduct.addBand(SensorConstants.MERIS_4TH_L1B_FLAGS_NAME, ProductData.TYPE_INT16);
    sensor = MphChlOp.getSensorType(sourceProduct);
    assertEquals(sensor, Sensor.MERIS_4TH);
    sourceProduct = new Product("test6", "test6", 1, 1);
    for (String bandName : MphChlConstants.OLCI_REQUIRED_BRR_BAND_NAMES) {
        sourceProduct.addBand(bandName, ProductData.TYPE_FLOAT32);
    }
    sensor = MphChlOp.getSensorType(sourceProduct);
    assertEquals(sensor, Sensor.OLCI);
}