@Test
public void readAspectsArrayTest() throws IOException {

    when(parser.readAspectsArray(reader)).thenCallRealMethod();
    when(reader.hasNext()).thenReturn(true, true, true, true, false, true, false, false);
    when(reader.nextName()).thenReturn("rating", "type", "skip");
    when(reader.nextInt()).thenReturn(1);
    when(reader.nextString()).thenReturn("one");
    List<RatingAspect> expected = Arrays.asList(new RatingAspect(1, "one"), new RatingAspect(-1, null));
    List<RatingAspect> actual = parser.readAspectsArray(reader);
    assertEquals(expected, actual);
}