@Test
public void shouldHoldTypeSourceDateAndFragmentType() throws Exception {
Date fromDate = new Date(0L);
Date toDate = new Date(1L);
MeasurementFilter filter = new MeasurementFilter().byType("type").bySource(new GId("1")).byFragmentType(NonRelevantFragmentType.class).byDate(
fromDate, toDate);
assertThat(filter.getType(), is("type"));
assertThat(filter.getSource(), is("1"));
assertThat(filter.getFragmentType(), is(ExtensibilityConverter.classToStringRepresentation(NonRelevantFragmentType.class)));