### Question:
CommandShellResultSet { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CommandShellResultSet<?, ?> that = (CommandShellResultSet<?, ?>) o; if (error != null ? !error.equals(that.error) : that.error != null) return false; return value != null ? value.equals(that.value) : that.value == null; } CommandShellResultSet(V value, E error); E getError(); V getValue(); CommandShellResultSet<M, T> map(Function<CommandShellResultSet<E, V>, CommandShellResultSet<M, T>> mapper); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testEqualsWhenObjectsAreSame() { List<String> value1 = new ArrayList<>(); List<String> errors1 = new ArrayList<>(); CommandShellResultSet commandShellResultSetLocal = new CommandShellResultSet<>(value1, errors1); assertTrue(commandShellResultSetLocal.equals(commandShellResultSet)); }
@Test public void testEqualsWhenObjectAreDifferent() { List<String> value1 = new ArrayList<>(); value1.add("value"); List<String> errors1 = new ArrayList<>(); CommandShellResultSet commandShellResultSetLocal = new CommandShellResultSet<>(value1, errors1); assertFalse(commandShellResultSetLocal.equals(commandShellResultSet)); }