output: #fixed code
                                  @Test
      public void authEnabled() throws IOException {
          greenMail.getManagers().getUserManager().setAuthRequired(true);
          withConnection((printStream, reader) -> {
              assertThat(reader.readLine()).startsWith("+OK POP3 GreenMail Server v");
              printStream.print("USER blar@blar.com" + CRLF);
              assertThat(reader.readLine()).isNotEqualTo("+OK");
          });
      }
input: #vulnerable code 
                                  @Test
      public void authEnabled() throws IOException, UserException {
          try (Socket socket = new Socket(hostAddress, port)) {
              assertThat(socket.isConnected()).isTrue();
              PrintStream printStream = new PrintStream(socket.getOutputStream());
              final BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
  
              greenMail.getManagers().getUserManager().setAuthRequired(true);
  
              assertThat(reader.readLine()).startsWith("+OK POP3 GreenMail Server v");
              printStream.print("USER blar@blar.com" + CRLF);
              assertThat(reader.readLine()).isNotEqualTo("+OK");
          }
      } 
                              #location 3 
                              #vulnerability type RESOURCE_LEAK