// This is test method so if it only contains @Test annotation then we don't need to hassel with substitutions
parameterType = methodDeclaredAnnotations.length <= 1 ? clazz : ClassModifier.getModifiedClass(clazz, methodDeclaredAnnotations);
} catch (Exception e) {
throw new RuntimeException("Cannot substitute annotations for method " + method.getName(), e);
}
final ProxyBuilder<?> proxyBuilder = resteasyWebTarget.proxyBuilder(parameterType);
if (null != consumes && consumes.value().length > 0) {
proxyBuilder.defaultConsumes(consumes.value()[0]);
}
if (null != produces && produces.value().length > 0) {
proxyBuilder.defaultProduces(produces.value()[0]);