@@ -0,0 +1,2286 @@
+/*%0A * JBoss, Home of Professional Open Source%0A * Copyright 2011, Red Hat, Inc., and individual contributors%0A * by the @authors tag. See the copyright.txt in the distribution for a%0A * full listing of individual contributors.%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 * http://www.apache.org/licenses/LICENSE-2.0%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.jboss.weld.tests.proxy.producer;%0A%0Aimport org.jboss.arquillian.container.test.api.Deployment;%0Aimport org.jboss.arquillian.junit.Arquillian;%0Aimport org.jboss.shrinkwrap.api.Archive;%0Aimport org.jboss.shrinkwrap.api.BeanArchive;%0Aimport org.jboss.shrinkwrap.api.ShrinkWrap;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport javax.enterprise.context.ApplicationScoped;%0Aimport javax.enterprise.inject.Produces;%0Aimport javax.inject.Inject;%0A%0A/**%0A * @author Kevin Pollet%0A */%0A@RunWith(Arquillian.class)%0Apublic class ProxyTest %7B%0A    @Deployment%0A    public static Archive%3C?%3E deploy() %7B%0A        return ShrinkWrap.create(BeanArchive.class)%0A                .addPackage(ProxyTest.class.getPackage());%0A    %7D%0A%0A    @Inject%0A    private GreetServiceString service;%0A%0A    @Test%0A    public void testProxy() %7B%0A        Assert.assertEquals(%22Hello%22, service.greet());%0A    %7D%0A%0A    @Produces%0A    @ApplicationScoped%0A    public GreetServiceString getService() %7B%0A        return new GreetServiceStringImpl(%22Hello%22);%0A    %7D%0A%0A    public static interface GreetService %7B%0A        CharSequence greet();%0A    %7D%0A%0A    public static interface GreetServiceString extends GreetService %7B%0A        String greet();%0A    %7D%0A%0A    public static class GreetServiceStringImpl implements GreetServiceString %7B%0A        private String message;%0A%0A        public GreetServiceStringImpl(String message) %7B%0A           this.message = message;%0A        %7D%0A%0A        public String greet() %7B%0A           return message;%0A        %7D%0A    %7D%0A%7D%0A

Add test for proxy.