code: @SuppressWarnings("unchecked")
      public static synchronized <T> ConstructorExpectationSetup<T> whenNew(String fullyQualifiedName) throws Exception {
          final Class<T> forName = (Class<T>) Class.forName(fullyQualifiedName);
          return new DefaultConstructorExpectationSetup<T>(forName);
      }
docs: Allows specifying expectations on new invocations for private member
  (inner) classes, local or anonymous classes. For example you might want
  to throw an exception or return a mock.
  
  @param fullyQualifiedName The fully-qualified name of the inner/local/anonymous type to
  expect.