@@ -0,0 +1,1257 @@
+/**%0A *  Copyright 2018 Sven Ewald%0A *%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 */%0Apackage org.xmlbeam.tests;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.util.Map;%0A%0Aimport org.junit.Test;%0Aimport org.xmlbeam.XBProjector;%0A%0A/**%0A * @author sven%0A *%0A */%0Apublic class SecurityTests %7B%0A%0A    private final static String XML=%22%3C?xml version=%5C%221.0%5C%22 encoding=%5C%22ISO-8859-1%5C%22?%3E%5Cn%22 + %0A            %22  %3C!DOCTYPE foo %5B  %5Cn%22 + %0A            %22   %3C!ELEMENT foo ANY %3E%5Cn%22 + %0A            %22   %3C!ENTITY xxe SYSTEM %5C%22file:///etc/passwd%5C%22 %3E%5D%3E%3Cfoo%3E&xxe;%3C/foo%3E%22;%0A    %0A    @Test%0A    public void badEntityResolver() %7B%0A        Map%3CString,String%3E map = new XBProjector().onXMLString(XML).createMapOf(String.class);%0A        assertTrue(map.isEmpty());%0A    %7D%0A%7D%0A

Add security test