### Question:
MonetaryQueries { public static MonetaryQuery<Long> extractMajorPart() { return EXTRACTOR_MAJOR_PART; } private  MonetaryQueries(); static MonetaryQuery<Long> extractMajorPart(); static MonetaryQuery<Long> convertMinorPart(); static MonetaryQuery<Long> extractMinorPart();  }### Answer:
@Test public void shouldExtractMajorPart(){ MonetaryAmount money = Money.parse("EUR 2.35"); Long result = money.query(MonetaryQueries.extractMajorPart()); assertEquals(result, Long.valueOf(2L)); }