text: #include "drake/common/autodiff.h"
  #include "drake/common/test/autodiffxd_test.h"
  
  namespace drake {
  namespace test {
  namespace {
  
  TEST_F(AutoDiffXdTest, Abs2) {
    CHECK_UNARY_FUNCTION(abs2, x, y, 0.1);
    CHECK_UNARY_FUNCTION(abs2, x, y, -0.1);
    CHECK_UNARY_FUNCTION(abs2, y, x, 0.1);
    CHECK_UNARY_FUNCTION(abs2, y, x, -0.1);
  }
  
  }  // namespace
  }  // namespace test
  }  // namespace drake
  