### Question:
MagicWandModel implements Cloneable { static Band[] getSpectralBands(Product product) { final Band[] bands = product.getBands(); final ArrayList<Band> spectralBands = new ArrayList<Band>(bands.length); for (Band band : bands) { if (band.getSpectralWavelength() > 0.0) { spectralBands.add(band); } } return spectralBands.toArray(new Band[spectralBands.size()]); } MagicWandModel(); @SuppressWarnings("CloneDoesntDeclareCloneNotSupportedException") @Override MagicWandModel clone(); void set(MagicWandModel other); String[] getBandNames(); void setBandNames(String[] bandNames); Mode getMode(); void setMode(Mode mode); Method getMethod(); Operator getOperator(); void setOperator(Operator operator); void setMethod(Method method); double getTolerance(); void setTolerance(double tolerance); double getMinTolerance(); void setMinTolerance(double minTolerance); double getMaxTolerance(); void setMaxTolerance(double maxTolerance); boolean isNormalize(); void setNormalize(boolean normalize); List<double[]> getPlusSpectra(); List<double[]> getMinusSpectra(); @Override boolean equals(Object o); @Override int hashCode(); static MagicWandModel fromXml(String xml); String toXml();  }### Answer:
@Test public void testGetSpectralBands() throws Exception { Band[] bands = MagicWandModel.getSpectralBands(product); assertEquals(3, bands.length); assertSame(bands[0], b1); assertSame(bands[1], b2); assertSame(bands[2], b3); }