//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void test()
        public virtual void test()
        {
            VolatilityAndBucketedSensitivities @object = VolatilityAndBucketedSensitivities.of(VOL, SENSITIVITIES);

            assertEquals(VOL, @object.Volatility);
            assertEquals(SENSITIVITIES, @object.Sensitivities);
            VolatilityAndBucketedSensitivities other = VolatilityAndBucketedSensitivities.of(VOL, DoubleMatrix.of(2, 3, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6));

            assertEquals(@object, other);
            assertEquals(@object.GetHashCode(), other.GetHashCode());
            other = VolatilityAndBucketedSensitivities.of(VOL + 0.01, SENSITIVITIES);
            assertFalse(other.Equals(@object));
            other = VolatilityAndBucketedSensitivities.of(VOL, SENSITIVITIES2);
            assertFalse(other.Equals(@object));
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(expectedExceptions = IllegalArgumentException.class) public void testNullSensitivities()
        public virtual void testNullSensitivities()
        {
            VolatilityAndBucketedSensitivities.of(VOL, null);
        }