@Test
public void testPrayerTimes() {

  DateComponents date = new DateComponents(2015, 7, 12);
  CalculationParameters params = CalculationMethod.NORTH_AMERICA.getParameters();
  params.madhab = Madhab.HANAFI;
  Coordinates coordinates = new Coordinates(35.7750, -78.6336);
  PrayerTimes prayerTimes = new PrayerTimes(coordinates, date, params);
  SimpleDateFormat formatter = new SimpleDateFormat("hh:mm a");
  formatter.setTimeZone(TimeZone.getTimeZone("America/New_York"));
  assertThat(formatter.format(prayerTimes.fajr)).isEqualTo("04:42 AM");
  assertThat(formatter.format(prayerTimes.sunrise)).isEqualTo("06:08 AM");
  assertThat(formatter.format(prayerTimes.dhuhr)).isEqualTo("01:21 PM");
  assertThat(formatter.format(prayerTimes.asr)).isEqualTo("06:22 PM");
  assertThat(formatter.format(prayerTimes.maghrib)).isEqualTo("08:32 PM");
  assertThat(formatter.format(prayerTimes.isha)).isEqualTo("09:57 PM");
}