@Rule
<BUG>public ExpectedException thrown = ExpectedException.none();
@Test</BUG>
public void get_periods() throws Exception {
<BUG>List<Period> periods = new ArrayList<>();
periods.add(new Period(1, "mode", null, 1000L, 10L));
PeriodsHolderImpl periodsHolder = new PeriodsHolderImpl();
periodsHolder.setPeriods(periods);

assertThat(periodsHolder.getPeriods()).hasSize(1);
</BUG>
}

@Rule
public ExpectedException thrown = ExpectedException.none();
private PeriodsHolderImpl underTest = new PeriodsHolderImpl();
