### Question:
OgcMessage { public boolean isWmsGetCapabilities() { return this.isWms() && this.getOperation() != null && this.getOperation().equals(OgcEnum.OperationType.GET_CAPABILITIES); } OgcMessage();  OgcMessage(OgcEnum.ServiceType service, OgcEnum.OperationType operation,
                      String endPoint, InterceptorEnum.RuleType requestRule,
                      InterceptorEnum.RuleType responseRule); OgcEnum.ServiceType getService(); void setService(OgcEnum.ServiceType service); OgcEnum.OperationType getOperation(); void setOperation(OgcEnum.OperationType operation); String getEndPoint(); void setEndPoint(String endPoint); InterceptorEnum.RuleType getRequestRule(); void setRequestRule(InterceptorEnum.RuleType requestRule); InterceptorEnum.RuleType getResponseRule(); void setResponseRule(InterceptorEnum.RuleType responseRule); boolean isWms(); boolean isWmts(); boolean isWfs(); boolean isWcs(); boolean isWps(); boolean isW3ds(); boolean isWmsGetCapabilities(); boolean isWmsGetMap(); boolean isWmsGetFeatureInfo(); boolean isWmsDescribeLayer(); boolean isWmsGetLegendGraphic(); boolean isWmsGetStyles(); boolean isWmtsGetCapabilities(); boolean isWmtsGetTile(); boolean isWmtsGetFeatureInfo(); boolean isWfsGetCapabilities(); boolean isWfsDescribeFeatureType(); boolean isWfsGetFeature(); boolean isWfsLockFeature(); boolean isWfsTransaction(); boolean isWcsGetCapabilities(); boolean isWcsDescribeCoverage(); boolean isWcsGetCoverage(); boolean isWpsGetCapabilities(); boolean isWpsDescribeProcess(); boolean isWpsExecute(); boolean isW3dsGetCapabilities(); boolean isW3dsGetScene(); boolean isW3dsGetFeatureInfo(); boolean isW3dsGetLayerInfo(); boolean isW3dsGetTile(); boolean isRequestAllowed(); boolean isResponseAllowed(); boolean isRequestDenied(); boolean isResponseDenied(); boolean isRequestModified(); boolean isResponseModified(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void is_wms_get_capabilities() { OgcMessage message = new OgcMessage(OgcEnum.ServiceType.WMS, OgcEnum.OperationType.GET_CAPABILITIES, null, null, null); assertEquals(true, message.isWmsGetCapabilities()); }