SLING-7133 - Add minimal HTL tests to launchpad/testing

Add a test which uses a Sling Model bean - passes with Java 8 but fails
with Java 9.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1808776 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 2f38bf2..136daa9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,7 +59,8 @@
                             *
                         </Import-Package>
                         <Export-Package>
-                          org.apache.sling.launchpad.testservices.exported.*
+                          org.apache.sling.launchpad.testservices.exported,
+                          org.apache.sling.launchpad.testservices.models
                         </Export-Package>
                         <Private-Package>
                             org.apache.sling.launchpad.testservices.*
@@ -81,6 +82,9 @@
                         <Embed-Dependency>
                         org.apache.felix.utils;inline=org/apache/felix/utils/json/JSONWriter.class
                     </Embed-Dependency>
+                        <Sling-Model-Packages>
+                          org.apache.sling.launchpad.testservices.models
+                        </Sling-Model-Packages>
                     </instructions>
                 </configuration>
             </plugin>
@@ -162,6 +166,11 @@
         </dependency>
         <dependency>
             <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.models.api</artifactId>
+            <version>1.3.6</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.junit.core</artifactId>
             <version>1.0.26</version>
             <scope>provided</scope>
diff --git a/src/main/java/org/apache/sling/launchpad/testservices/models/DummyModel.java b/src/main/java/org/apache/sling/launchpad/testservices/models/DummyModel.java
new file mode 100644
index 0000000..0f4f3ff
--- /dev/null
+++ b/src/main/java/org/apache/sling/launchpad/testservices/models/DummyModel.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sling.launchpad.testservices.models;
+
+import javax.annotation.PostConstruct;
+
+import org.apache.sling.api.SlingHttpServletRequest;
+import org.apache.sling.models.annotations.Model;
+
+@Model(adaptables = SlingHttpServletRequest.class)
+public class DummyModel {
+
+    private String message;
+    
+    @PostConstruct
+    public void init() {
+        message = "from-sling-model";
+    }
+    
+    public String getMessage() {
+        return message;
+    }
+}