public function testGetWindowsStates()
 {
     $user = new User();
     $windowStateFoo = $this->createWindowState(['cleanUrl' => 'foo']);
     $windowStateBar = $this->createWindowState(['cleanUrl' => 'foo']);
     $windowStates = [$windowStateFoo, $windowStateBar];
     $token = $this->getMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface');
     $token->expects($this->once())->method('getUser')->willReturn($user);
     $this->tokenStorage->expects($this->once())->method('getToken')->willReturn($token);
     $repo = $this->getMockBuilder('Oro\\Bundle\\WindowsBundle\\Entity\\Repository\\WindowsStateRepository')->disableOriginalConstructor()->getMock();
     $this->doctrineHelper->expects($this->once())->method('getEntityRepository')->willReturn($repo);
     $repo->expects($this->once())->method('findBy')->with(['user' => $user])->willReturn($windowStates);
     $this->requestStateManager->expects($this->never())->method($this->anything());
     $this->assertSame($windowStates, $this->manager->getWindowsStates());
 }