	@Test
	public void testGetNextTermBeginAfter() throws RemoteException {

		Date startDate = Date.from(ZonedDateTime
				.ofLocal(LocalDate.of(2016, 9, 23).atStartOfDay(), ZoneId.systemDefault(), null)
				.toInstant());

		ValidRuntimes runtimes = new ValidRuntimes();
		runtimes.firstMinRuntimeCount = 6;
		runtimes.firstMinRuntimeType = IntervalType.MONTHS;
		runtimes.followingMinRuntimeCount = 3;
		runtimes.followingMinRuntimeType = IntervalType.MONTHS;

		Date actual = DateUtils.calculateNextTermBeginAfter(now, startDate, false, runtimes);
		actual = DateUtils.calculateNextTermBeginAfter(actual, startDate, false, runtimes);

		Date expected = Date.from(ZonedDateTime
				.ofLocal(LocalDate.of(2017, 6, 23).atStartOfDay(), ZoneId.systemDefault(), null)
				.toInstant());
		assertEquals(expected, actual);
	}