### Question:
Tick implements Serializable { public boolean inPeriod(DateTime timestamp) { return timestamp != null && !timestamp.isBefore(beginTime) && timestamp.isBefore(endTime); } Tick(Period timePeriod, DateTime endTime);  Tick(DateTime endTime, double openPrice, double highPrice, double lowPrice, double closePrice, double volume);  Tick(DateTime endTime, String openPrice, String highPrice, String lowPrice, String closePrice, String volume);  Tick(DateTime endTime, Decimal openPrice, Decimal highPrice, Decimal lowPrice, Decimal closePrice, Decimal volume);  Tick(Period timePeriod, DateTime endTime, Decimal openPrice, Decimal highPrice, Decimal lowPrice, Decimal closePrice, Decimal volume); Decimal getClosePrice(); Decimal getOpenPrice(); int getTrades(); Decimal getMaxPrice(); Decimal getAmount(); Decimal getVolume(); void addTrade(double tradeAmount, double tradePrice); void addTrade(String tradeAmount, String tradePrice); void addTrade(Decimal tradeAmount, Decimal tradePrice); Decimal getMinPrice(); Period getTimePeriod(); DateTime getBeginTime(); DateTime getEndTime(); @Override String toString(); boolean inPeriod(DateTime timestamp); boolean isBearish(); boolean isBullish(); String getDateName(); String getSimpleDateName();  }### Answer:
@Test public void inPeriod() { assertFalse(tick.inPeriod(null)); assertFalse(tick.inPeriod(beginTime.withDayOfMonth(24))); assertFalse(tick.inPeriod(beginTime.withDayOfMonth(26))); assertTrue(tick.inPeriod(beginTime.withMinuteOfHour(30))); assertTrue(tick.inPeriod(beginTime)); assertFalse(tick.inPeriod(endTime)); }