### Question:
AggregatedCoverageResource implements WritableAggregate, GridCoverageResource { public int getDataType() { return dataType; } AggregatedCoverageResource(List<VirtualBand> bands, Mode mode, CoordinateReferenceSystem resultCrs);  AggregatedCoverageResource(); static GridCoverageResource create(CoordinateReferenceSystem resultCrs, GridCoverageResource ... resources); static GridCoverageResource create(CoordinateReferenceSystem resultCrs, Mode mode, GridCoverageResource ... resources); @Override Optional<GenericName> getIdentifier(); void setIdentifier(GenericName identifier); @Override Metadata getMetadata(); @Override synchronized GridGeometry getGridGeometry(); @Override synchronized List<SampleDimension> getSampleDimensions(); synchronized void setSampleDimensions(List<SampleDimension> sampleDimensions); @Override Optional<Envelope> getEnvelope(); List<VirtualBand> getBands(); void setBands(List<VirtualBand> bands); @Override Set<GridCoverageResource> components(); @Override synchronized void remove(Resource resource); @Override synchronized Resource add(Resource resource); Interpolation getInterpolation(); void setInterpolation(Interpolation interpolation); Mode getMode(); void setMode(Mode mode); void setDataType(int dataType); int getDataType(); CoordinateReferenceSystem getOutputCrs(); synchronized void setOutputCrs(CoordinateReferenceSystem outputCrs); @Override GridCoverage read(GridGeometry domain, int... range); @Override void addListener(Class<T> eventType, StoreListener<? super T> listener); @Override void removeListener(Class<T> eventType, StoreListener<? super T> listener); @Override String toString(); static MathTransform createTransform(GridGeometry source, RenderedImage sourceImg, GridGeometry target, RenderedImage targetImg);  }### Answer:
@Test public void defaultDataTypeIsAuto() { final AggregatedCoverageResource r = new AggregatedCoverageResource(); Assert.assertTrue("Default data type should be auto: infer type from aggregated sources", r.getDataType() < 0); }