source: class TimePeriodHandlerTest {
  
  	private TimePeriodHandler timePeriodHandler;
  
  	@Test
  	public void testTransfer2hToLongPeriod() {
  
target: 		String periodExpression = "2h";
  		long[] transferToLongPeriod = this.timePeriodHandler.transferToLongPeriod(periodExpression);
  		assertEquals(transferToLongPeriod.length, 2);
  		assertEquals(transferToLongPeriod[1] - transferToLongPeriod[0], 120*60*1000);
  	}
  
  }