add AssertionError when invoking private constructor