### Question:
ReadBlockOfChildrenRequest extends CacheableRequest { public Location of() { return of; } ReadBlockOfChildrenRequest( Location of,
                                       String workspaceName,
                                       int startingIndex,
                                       int count ); @Override boolean isReadOnly(); Location of(); String inWorkspace(); int count(); int startingAtIndex(); int endingBefore(); List<Location> getChildren(); void addChildren( Iterable<Location> children ); void addChild( Location child ); void addChild( Path pathToChild,
                          Property firstIdProperty,
                          Property... remainingIdProperties ); void addChild( Path pathToChild,
                          Property idProperty ); void setActualLocationOfNode( Location actual ); Location getActualLocationOfNode(); @Override void cancel(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); @Override RequestType getType(); static final int INDEX_NOT_USED; }### Answer:
@Test public void shouldCreateValidRequestWithValidLocation() { request = new ReadBlockOfChildrenRequest(validPathLocation1, workspace1, 2, 10); assertThat(request.of(), is(sameInstance(validPathLocation1))); assertThat(request.hasError(), is(false)); assertThat(request.getError(), is(nullValue())); }