applied test case from https://issues.apache.org/jira/browse/JCI-59 ..unfortunately that means eclipse tests are no longer passing