Tests the method for checking if the access check applies to a route.
public function testApplies() {
  $applies_check = new EntityAccessCheck();
  $route = $this
    ->getMockBuilder('Symfony\\Component\\Routing\\Route')
    ->disableOriginalConstructor()
    ->getMock();
  $route
    ->expects($this
    ->any())
    ->method('getRequirements')
    ->will($this
    ->returnValue(array(
    '_entity_access' => '',
  )));
  $res = $applies_check
    ->applies($route);
  $this
    ->assertEquals(TRUE, $res);
  $route = $this
    ->getMockBuilder('Symfony\\Component\\Routing\\Route')
    ->disableOriginalConstructor()
    ->getMock();
  $route
    ->expects($this
    ->any())
    ->method('getRequirements')
    ->will($this
    ->returnValue(array()));
  $res = $applies_check
    ->applies($route);
  $this
    ->assertEquals(FALSE, $res);
}