### Question:
ProductDimensions { public static ProductBiddingCategory createBiddingCategory( ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId) { Preconditions.checkNotNull(productDimensionType, "ProductDimensionType is required when creating a ProductBiddingCategory"); ProductBiddingCategory productBiddingCategory = new ProductBiddingCategory(); productBiddingCategory.setType(productDimensionType); productBiddingCategory.setValue(biddingCategoryId); return productBiddingCategory; } private  ProductDimensions(); static ProductType createType(ProductDimensionType productDimensionType,
      @Nullable String productTypeValue); static ProductCanonicalCondition createCanonicalCondition(
      @Nullable ProductCanonicalConditionCondition condition); static ProductBiddingCategory createBiddingCategory(
      ProductDimensionType productDimensionType, @Nullable Long biddingCategoryId); static ProductOfferId createOfferId(@Nullable String offerId); static ProductBrand createBrand(@Nullable String brand); static ProductCustomAttribute createCustomAttribute(
      ProductDimensionType productDimensionType, @Nullable String attributeValue); static ProductChannel createChannel(@Nullable ShoppingProductChannel channel); static ProductChannelExclusivity createChannelExclusivity(
      @Nullable ShoppingProductChannelExclusivity channelExclusivity);  }### Answer:
@Test public void testCreateBiddingCategory() { ProductBiddingCategory category = ProductDimensions.createBiddingCategory(ProductDimensionType.BIDDING_CATEGORY_L1, 1L); assertEquals(ProductDimensionType.BIDDING_CATEGORY_L1, category.getType()); assertEquals(Long.valueOf(1), category.getValue()); }
@Test public void testCreateBiddingCategory_nullCategoryLevel_fails() { thrown.expect(NullPointerException.class); ProductDimensions.createBiddingCategory(null, 1L); }