@Test
public void testMapOnlyJobWithSizeSegmentedOutput() throws Exception {
String mimeType = "application/json";
String fileNamePattern = "MapOnlySegmentingTestShard-%04d/file-%04d";
SizeSegmentedGoogleCloudStorageFileOutput output =
new SizeSegmentedGoogleCloudStorageFileOutput(BUCKET, 30, fileNamePattern, mimeType);
MarshallingOutput<String, GoogleCloudStorageFileSet> op =
new MarshallingOutput<>(output, Marshallers.getStringMarshaller());
MapSpecification<Long, String, GoogleCloudStorageFileSet> spec = new MapSpecification.Builder<>(
new ConsecutiveLongInput(0, 100, 1), new MapOnly(), op).setJobName("Test job").build();