code: public static Constructor<?> getConstructor(Class<?> type, Class<?>... parameterTypes) {
          Class<?> unmockedType = WhiteboxImpl.getOriginalUnmockedType(type);
          try {
              final Constructor<?> constructor = unmockedType.getDeclaredConstructor(parameterTypes);
              constructor.setAccessible(true);
              return constructor;
          } catch (RuntimeException e) {
              throw e;
          } catch (Error e) {
              throw e;
          } catch (Throwable e) {
              throw new ConstructorNotFoundException(String.format(
                      "Failed to lookup constructor with parameter types [ %s ] in class %s.",
                      getArgumentTypesAsString((Object[]) parameterTypes), unmockedType.getName()), e);
          }
      }
docs: Convenience method to get a (declared) constructor from a class type
  without having to catch the checked exceptions otherwise required. These
  exceptions are wrapped as runtime exceptions. The constructor is also set
  to accessible.
  
  @param type           The type of the class where the constructor is located.
  @param parameterTypes All parameter types of the constructor (may be
  {@code null}).
  @return A .