TenorUtils { @Deprecated public static double getTenorsInTenor(final Tenor first, final Tenor second) { return TenorUtils.getDaysInTenor(first) / TenorUtils.getDaysInTenor(second); } protected  TenorUtils(); static double getDaysInTenor(final Tenor tenor); @Deprecated static ZonedDateTime getDateWithTenorOffset(final ZonedDateTime dateTime, final Tenor tenor); @Deprecated static double getTenorsInTenor(final Tenor first, final Tenor second);  }
@Test(expectedExceptions = IllegalStateException.class) public void testTenorsInTenor() { assertEquals(7, TenorUtils.getTenorsInTenor(Tenor.ONE_WEEK, Tenor.ONE_DAY), 0); assertEquals(3.5, TenorUtils.getTenorsInTenor(Tenor.ONE_WEEK, Tenor.TWO_DAYS), 0); assertEquals(7, TenorUtils.getTenorsInTenor(Tenor.THREE_WEEKS, Tenor.THREE_DAYS), 0); assertEquals(0, TenorUtils.getTenorsInTenor(Tenor.ONE_MONTH, Tenor.ONE_DAY), 0); assertEquals(0, TenorUtils.getTenorsInTenor(Tenor.ONE_YEAR, Tenor.ONE_DAY), 0); TenorUtils.getTenorsInTenor(Tenor.TWO_WEEKS, Tenor.ON); }