### Question:
Surfaces { public static SurfaceMetadata blackVolatilityByExpiryStrike(String name, DayCount dayCount) { return blackVolatilityByExpiryStrike(SurfaceName.of(name), dayCount); } private  Surfaces(); static SurfaceMetadata blackVolatilityByExpiryTenor(String name, DayCount dayCount); static SurfaceMetadata blackVolatilityByExpiryTenor(SurfaceName name, DayCount dayCount); static SurfaceMetadata blackVolatilityByExpiryStrike(String name, DayCount dayCount); static SurfaceMetadata blackVolatilityByExpiryStrike(SurfaceName name, DayCount dayCount); static SurfaceMetadata blackVolatilityByExpiryLogMoneyness(String name, DayCount dayCount); static SurfaceMetadata blackVolatilityByExpiryLogMoneyness(SurfaceName name, DayCount dayCount); static SurfaceMetadata normalVolatilityByExpiryTenor(String name, DayCount dayCount); static SurfaceMetadata normalVolatilityByExpiryTenor(SurfaceName name, DayCount dayCount); static SurfaceMetadata normalVolatilityByExpiryStrike(String name, DayCount dayCount); static SurfaceMetadata normalVolatilityByExpiryStrike(SurfaceName name, DayCount dayCount); static SurfaceMetadata normalVolatilityByExpirySimpleMoneyness(
      String name,
      DayCount dayCount,
      MoneynessType moneynessType); static SurfaceMetadata normalVolatilityByExpirySimpleMoneyness(
      SurfaceName name,
      DayCount dayCount,
      MoneynessType moneynessType); static SurfaceMetadata sabrParameterByExpiryTenor(
      String name,
      DayCount dayCount,
      ValueType zType); static SurfaceMetadata sabrParameterByExpiryTenor(
      SurfaceName name,
      DayCount dayCount,
      ValueType zType);  }### Answer:
@Test public void blackVolatilityByExpiryStrike_string() { SurfaceMetadata test = Surfaces.blackVolatilityByExpiryStrike(NAME, ACT_360); SurfaceMetadata expected = DefaultSurfaceMetadata.builder() .surfaceName(SURFACE_NAME) .xValueType(ValueType.YEAR_FRACTION) .yValueType(ValueType.STRIKE) .zValueType(ValueType.BLACK_VOLATILITY) .dayCount(ACT_360) .build(); assertThat(test).isEqualTo(expected); }
@Test public void blackVolatilityByExpiryStrike_surfaceName() { SurfaceMetadata test = Surfaces.blackVolatilityByExpiryStrike(SURFACE_NAME, ACT_360); SurfaceMetadata expected = DefaultSurfaceMetadata.builder() .surfaceName(SURFACE_NAME) .xValueType(ValueType.YEAR_FRACTION) .yValueType(ValueType.STRIKE) .zValueType(ValueType.BLACK_VOLATILITY) .dayCount(ACT_360) .build(); assertThat(test).isEqualTo(expected); }