public virtual void test_of_withStrikeType()
        {
            GenericVolatilitySurfaceYearFractionParameterMetadata test = GenericVolatilitySurfaceYearFractionParameterMetadata.of(TIME_TO_EXPIRY, STRIKE1);

            assertEquals(test.Identifier, Pair.of(TIME_TO_EXPIRY, STRIKE1));
            assertEquals(test.Label, Pair.of(TIME_TO_EXPIRY, STRIKE1.Label).ToString());
            assertEquals(test.Strike, STRIKE1);
            assertEquals(test.YearFraction, TIME_TO_EXPIRY);
        }
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            GenericVolatilitySurfaceYearFractionParameterMetadata test1 = GenericVolatilitySurfaceYearFractionParameterMetadata.of(TIME_TO_EXPIRY, STRIKE1);

            coverImmutableBean(test1);
            GenericVolatilitySurfaceYearFractionParameterMetadata test2 = GenericVolatilitySurfaceYearFractionParameterMetadata.of(3d, MoneynessStrike.of(1.1d));

            coverBeanEquals(test1, test2);
        }
        public virtual void test_of_withLabel()
        {
            Pair <double, Strike> pair = Pair.of(TIME_TO_EXPIRY, STRIKE2);
            string label = "(1.5, 1.35)";
            GenericVolatilitySurfaceYearFractionParameterMetadata test = GenericVolatilitySurfaceYearFractionParameterMetadata.of(TIME_TO_EXPIRY, STRIKE2, label);

            assertEquals(test.Identifier, pair);
            assertEquals(test.Label, label);
            assertEquals(test.Strike, STRIKE2);
            assertEquals(test.YearFraction, TIME_TO_EXPIRY);
        }
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         GenericVolatilitySurfaceYearFractionParameterMetadata other = (GenericVolatilitySurfaceYearFractionParameterMetadata)obj;
         return(JodaBeanUtils.equal(yearFraction, other.yearFraction) && JodaBeanUtils.equal(strike, other.strike) && JodaBeanUtils.equal(label, other.label));
     }
     return(false);
 }
        public virtual void test_builder_incomplete()
        {
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: org.joda.beans.BeanBuilder<? extends GenericVolatilitySurfaceYearFractionParameterMetadata> builder1 = GenericVolatilitySurfaceYearFractionParameterMetadata.meta().builder();
            BeanBuilder <GenericVolatilitySurfaceYearFractionParameterMetadata> builder1 = GenericVolatilitySurfaceYearFractionParameterMetadata.meta().builder();

            assertThrowsIllegalArg(() => builder1.build());
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: org.joda.beans.BeanBuilder<? extends GenericVolatilitySurfaceYearFractionParameterMetadata> builder2 = GenericVolatilitySurfaceYearFractionParameterMetadata.meta().builder();
            BeanBuilder <GenericVolatilitySurfaceYearFractionParameterMetadata> builder2 = GenericVolatilitySurfaceYearFractionParameterMetadata.meta().builder();

            builder2.set(GenericVolatilitySurfaceYearFractionParameterMetadata.meta().yearFraction(), TIME_TO_EXPIRY);
            assertThrowsIllegalArg(() => builder2.build());
        }
        public virtual void test_builder_noLabel()
        {
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: org.joda.beans.BeanBuilder<? extends GenericVolatilitySurfaceYearFractionParameterMetadata> builder = GenericVolatilitySurfaceYearFractionParameterMetadata.meta().builder();
            BeanBuilder <GenericVolatilitySurfaceYearFractionParameterMetadata> builder = GenericVolatilitySurfaceYearFractionParameterMetadata.meta().builder();
            Pair <double, Strike> pair = Pair.of(TIME_TO_EXPIRY, STRIKE1);

            builder.set(GenericVolatilitySurfaceYearFractionParameterMetadata.meta().yearFraction(), TIME_TO_EXPIRY);
            builder.set(GenericVolatilitySurfaceYearFractionParameterMetadata.meta().strike(), STRIKE1);
            GenericVolatilitySurfaceYearFractionParameterMetadata test = builder.build();

            assertEquals(test.Identifier, pair);
            assertEquals(test.Label, Pair.of(TIME_TO_EXPIRY, STRIKE1.Label).ToString());
            assertEquals(test.Strike, STRIKE1);
            assertEquals(test.YearFraction, TIME_TO_EXPIRY);
        }
        public virtual void test_serialization()
        {
            GenericVolatilitySurfaceYearFractionParameterMetadata test = GenericVolatilitySurfaceYearFractionParameterMetadata.of(TIME_TO_EXPIRY, STRIKE1);

            assertSerialization(test);
        }