@@ -0,0 +1,1450 @@
+/*%0A * #%25L%0A * wcm.io%0A * %25%25%0A * Copyright (C) 2018 wcm.io%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * #L%25%0A */%0Apackage io.wcm.qa.galenium.verification.stability;%0A%0Aimport java.util.List;%0A%0Aimport net.lightbody.bmp.core.har.HarEntry;%0Aimport net.lightbody.bmp.core.har.HarResponse;%0A%0Apublic class HarSanity extends HarStability %7B%0A%0A  @Override%0A  protected boolean checkForEquality(List%3CHarEntry%3E oldList, List%3CHarEntry%3E newList) %7B%0A    if (super.checkForEquality(oldList, newList)) %7B%0A      getLogger().debug(%22Har is stable. Now checking sanity.%22);%0A      return checkSanity(newList);%0A    %7D%0A    return false;%0A  %7D%0A%0A  private boolean checkSanity(List%3CHarEntry%3E newList) %7B%0A    for (HarEntry harEntry : newList) %7B%0A      HarResponse response = harEntry.getResponse();%0A      if (response.getStatus() == 0) %7B%0A        getLogger().debug(%22found response with response status 0: %22 + response);%0A        return false;%0A      %7D%0A    %7D%0A    return true;%0A  %7D%0A%7D%0A

add Har sanity check, which makes sure there are no open (HTTP status 0) responses in archive