code: public static <T> Method[] getAllMethodExcept(Class<T> type, String... methodNames) {
          List<Method> methodsToMock = new LinkedList<Method>();
          Method[] methods = getAllMethods(type);
          iterateMethods:
          for (Method method : methods) {
              for (String methodName : methodNames) {
                  if (method.getName().equals(methodName)) {
                      continue iterateMethods;
                  }
              }
              methodsToMock.add(method);
          }
          return methodsToMock.toArray(new Method[0]);
      }
docs: Gets the all method except.
  
  @param <T>         the generic type
  @param type        the type
  @param methodNames the method names
  @return the all method except