{
List<Spec> specs = objects.get(0).getSpecs();
assertThat(specs.size(), is(2));
Spec spec1 = specs.get(0);
Spec spec2 = specs.get(1);
assertThat(spec1.getOriginalText(), is("text is: Login"));
assertThat(spec1.isOnlyWarn(), is(true));
assertThat(spec2.getOriginalText(), is("width: 100px"));
assertThat(spec2.isOnlyWarn(), is(false));
}
{
List<Spec> specs = objects.get(1).getSpecs();
assertThat(specs.size(), is(2));
Spec spec1 = specs.get(0);
Spec spec2 = specs.get(1);
assertThat(spec1.getOriginalText(), is("width: 150px"));
assertThat(spec1.isOnlyWarn(), is(true));
assertThat(spec2.getOriginalText(), is("height: 50px"));
assertThat(spec2.isOnlyWarn(), is(false));
}
}