public void writeShortMethodDescriptor(MethodReference methodReference) throws IOException {
        writeSimpleName(methodReference.getName());
        writer.write('(');
        for (CharSequence paramType: methodReference.getParameterTypes()) {
            writeType(paramType);
        }
        writer.write(')');
        writeType(methodReference.getReturnType());
    }
@Test
    public void testWriteShortMethodDescriptor() throws IOException {
        DexFormattedWriter writer = new DexFormattedWriter(output);

        writer.writeShortMethodDescriptor(getMethodReference());

        Assert.assertEquals("methodName(Lparam1;Lparam2;)Lreturn/type;", output.toString());
    }