FeatureCollectionResponse mockResult =
FeatureCollectionResponse.adapt(WfsFactory.eINSTANCE.createFeatureCollectionType());
mockResult.getFeature().add(getFeatureSource(ALL_DOTS).getFeatures(Filter.INCLUDE));
GetFeatureType mockRequest = WfsFactory.eINSTANCE.createGetFeatureType();
Operation mockOperation = new Operation("GetFeature", getServiceDescriptor10(), null,
new Object[] { mockRequest });
assertEquals("All_Types_Dots.zip", zip.getAttachmentFileName(mockResult, mockOperation));
mockRequest.getFormatOptions().put("FILENAME", "REQUEST_SUPPLIED_FILENAME.zip");
assertEquals("REQUEST_SUPPLIED_FILENAME.zip", zip.getAttachmentFileName(mockResult, mockOperation));
}