public void testPerformActionLoggedIn() throws Exception {

    displayLibraryDetailsActionLoggedIn.performAction();
    verify(mockPrintStream).println("Name : abc");
    verify(mockPrintStream).println("Email : [email protected]");
    verify(mockPrintStream).println("Phone Number : 123456");
  }
  public void testPerformActionNotLoggedIn() throws Exception {

    displayLibraryDetailsActionNotLoggedIn.performAction();
    verify(mockPrintStream).println("Please talk to Librarian. Thank you.");
  }