@@ -0,0 +1,1946 @@
+package de.tse.simplerestfacade;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.lang.reflect.Method;%0A%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.core.MediaType;%0A%0Aimport org.junit.Test;%0A%0Aimport de.tse.simplerestfacade.invocation.MethodCall;%0Aimport de.tse.simplerestfacade.invocation.MethodInformation;%0Aimport de.tse.simplerestfacade.methodinformation.MethodInformationDetector;%0A%0Apublic class MethodInformationDetectorTest %7B%0A%0A    public static interface TestDetectMediaType %7B%0A        %0A        void interfaceMethod();%0A    %7D%0A    %0A    @Test public void testDetectMediaType() %7B%0A        %0A        MethodInformationDetector detector = new MethodInformationDetector();%0A        %0A        MethodCall call = methodCall(TestDetectMediaType.class, %22interfaceMethod%22, MediaType.APPLICATION_XML);%0A        MethodInformation info = detector.detectRestInformations(call);%0A        assertEquals(MediaType.APPLICATION_XML, info.getMediaType());%0A    %7D%0A    %0A    @Path(%22service%22)%0A    public static interface TestDetectMethodPath %7B%0A        %0A        @Path(%22/method%22)%0A        void interfaceMethod();%0A    %7D%0A    %0A    @Test public void testDetectMethoPath() %7B%0A%0A        MethodInformationDetector detector = new MethodInformationDetector();%0A        %0A        MethodCall call = methodCall(TestDetectMethodPath.class, %22interfaceMethod%22, MediaType.APPLICATION_XML);%0A        MethodInformation info = detector.detectRestInformations(call);%0A        %0A        assertEquals(%22service/method%22, info.getMethodUrl());%0A    %7D%0A    %0A    private MethodCall methodCall(final Class%3C?%3E serviceClass, final String methodName, final String mediaType, final Class%3C?%3E ...paramTypes) %7B%0A        final Method method;%0A        try %7B%0A            method = serviceClass.getMethod(methodName, paramTypes);%0A        %7D%0A        catch (NoSuchMethodException %7C SecurityException ex) %7B%0A            throw new RuntimeException(ex);%0A        %7D%0A        return new MethodCall(method, paramTypes, mediaType);%0A    %7D%0A%7D%0A

Add Test for MethodInformationDetector