### Question:
Method { public static Method getMethod(final java.lang.reflect.Method method) { return new Method(method.getName(), Type.getMethodDescriptor(method)); } Method(final String name, final String descriptor);  Method(final String name, final Type returnType, final Type[] argumentTypes); static Method getMethod(final java.lang.reflect.Method method); static Method getMethod(final java.lang.reflect.Constructor<?> constructor); static Method getMethod(final String method); static Method getMethod(final String method, final boolean defaultPackage); String getName(); String getDescriptor(); Type getReturnType(); Type[] getArgumentTypes(); @Override String toString(); @Override boolean equals(final Object other); @Override int hashCode();  }### Answer:
@Test public void testGetMethod_fromInvalidDescriptor() { assertThrows(IllegalArgumentException.class, () -> Method.getMethod("name()")); assertThrows(IllegalArgumentException.class, () -> Method.getMethod("void name")); assertThrows(IllegalArgumentException.class, () -> Method.getMethod("void name(]")); }