/**
   * DOC Administrator Comment method "setUp".
   *
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    mockHttpServletRequest = mock(HttpServletRequest.class);
    mockHttpServletResponse = mock(HttpServletResponse.class);

    defaultConnectionStrategy = DefaultConnectionStrategy.getInstance();

    mockStatic(LicenseUtil.class);
    when(LicenseUtil.getInstance()).thenReturn(mock(LicenseUtil.class));

    outStringWriter = new StringWriter();
    PrintWriter outPrintWriter = new PrintWriter(outStringWriter);
    when(mockHttpServletResponse.getWriter()).thenReturn(outPrintWriter);

    password = ConnectionUtil.computePassword(passwdString);
  }
 public static String getProductKey() throws LicenseInvalidException {
   return LicenseUtil.getInstance().getProductKey();
 }