test_class.file: cosmic-core/engine/orchestration/src/test/java/com/cloud/agent/manager/ConnectedAgentAttacheTest.java
test_class.identifier: ConnectedAgentAttacheTest
test_case.body: @Test
      public void testEqualsFalseDiffClass() throws Exception {
  
          final Link link1 = mock(Link.class);
  
          final ConnectedAgentAttache agentAttache1 = new ConnectedAgentAttache(null, 1, null, link1, false);
  
          assertFalse(agentAttache1.equals("abc"));
      }
test_case.class_method_signature: ConnectedAgentAttacheTest.testEqualsFalseDiffClass()
test_case.full_signature: @Test public void testEqualsFalseDiffClass()
test_case.identifier: testEqualsFalseDiffClass
test_case.invocations: mock assertFalse equals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEqualsFalseDiffClass()
focal_class.declarator: s_logger = LoggerFactory.getLogger(ConnectedAgentAttache.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger s_logger = LoggerFactory.getLogger(ConnectedAgentAttache.class);
focal_class.type: Logger
focal_class.var_name: s_logger
focal_class.declarator: _link
focal_class.modifier: protected
focal_class.original_string: protected Link _link;
focal_class.type: Link
focal_class.var_name: _link
focal_class.file: cosmic-core/engine/orchestration/src/main/java/com/cloud/agent/manager/ConnectedAgentAttache.java
focal_class.identifier: ConnectedAgentAttache
focal_class.class_method_signature: ConnectedAgentAttache.ConnectedAgentAttache(final AgentManagerImpl agentMgr, final long id, final String name, final Link link, final boolean maintenance)
focal_class.full_signature: public  ConnectedAgentAttache(final AgentManagerImpl agentMgr, final long id, final String name, final Link link, final boolean maintenance)
focal_class.identifier: ConnectedAgentAttache
focal_class.modifiers: public
focal_class.parameters: (final AgentManagerImpl agentMgr, final long id, final String name, final Link link, final boolean maintenance)
focal_class.signature:  ConnectedAgentAttache(final AgentManagerImpl agentMgr, final long id, final String name, final Link link, final boolean maintenance)
focal_class.class_method_signature: ConnectedAgentAttache.send(final Request req)
focal_class.full_signature: @Override public synchronized void send(final Request req)
focal_class.identifier: send
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (final Request req)
focal_class.return: void
focal_class.signature: void send(final Request req)
focal_class.class_method_signature: ConnectedAgentAttache.equals(final Object obj)
focal_class.full_signature: @Override public boolean equals(final Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object obj)
focal_class.class_method_signature: ConnectedAgentAttache.disconnect(final HostStatus state)
focal_class.full_signature: @Override public void disconnect(final HostStatus state)
focal_class.identifier: disconnect
focal_class.modifiers: @Override public
focal_class.parameters: (final HostStatus state)
focal_class.return: void
focal_class.signature: void disconnect(final HostStatus state)
focal_class.class_method_signature: ConnectedAgentAttache.isClosed()
focal_class.full_signature: @Override public synchronized boolean isClosed()
focal_class.identifier: isClosed
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isClosed()
focal_class.class_method_signature: ConnectedAgentAttache.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: ConnectedAgentAttache.finalize()
focal_class.full_signature: @Override protected void finalize()
focal_class.identifier: finalize
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void finalize()
focal_class.superclass: extends AgentAttache
focal_method.body: @Override
      public boolean equals(final Object obj) {
          // Return false straight away.
          if (obj == null) {
              return false;
          }
          // No need to handle a ClassCastException. If the classes are different, then equals can return false straight ahead.
          if (this.getClass() != obj.getClass()) {
              return false;
          }
          // This should not be part of the equals() method, but I'm keeping it because it is expected behaviour based
          // on the previous implementation. The link attribute of the other object should be checked here as well
          // to verify if it's not null whilst the this is null.
          if (_link == null) {
              return false;
          }
          final ConnectedAgentAttache that = (ConnectedAgentAttache) obj;
          return super.equals(obj) && _link == that._link;
      }
focal_method.class_method_signature: ConnectedAgentAttache.equals(final Object obj)
focal_method.full_signature: @Override public boolean equals(final Object obj)
focal_method.identifier: equals
focal_method.invocations: getClass getClass equals
focal_method.modifiers: @Override public
focal_method.parameters: (final Object obj)
focal_method.return: boolean
focal_method.signature: boolean equals(final Object obj)