@@ -0,0 +1,875 @@
+package mesosphere.marathon.client.model.v2;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Apublic class AppTest %7B%0A    /**%0A     * Test that roles can be added individually and duplicate roles%0A     * do not cause an issue.%0A     *%0A     * @throws Exception%0A     */%0A    @Test%0A    public void testAddAcceptedResourceRole() throws Exception %7B%0A        final App app = new App();%0A        app.addAcceptedResourceRole(%22arole%22);%0A        assertTrue(%22Added role exists%22,%0A                app.getAcceptedResourceRoles().contains(%22arole%22));%0A        app.addAcceptedResourceRole(%22another%22);%0A        assertTrue(%22Second added role exists%22,%0A                app.getAcceptedResourceRoles().contains(%22another%22));%0A        app.addAcceptedResourceRole(%22arole%22);%0A        assertTrue(%22Duplicate role exists%22,%0A                app.getAcceptedResourceRoles().contains(%22arole%22));%0A    %7D%0A%7D

Add Role Tests