public synchronized boolean getHasError() {
    return hasError;
  }
@Test
  public void shouldDefaultToFalseForHasError() {
    // Given:
    final ProcessingQueue queue = new ProcessingQueue(new QueryId("a"));

    // Then:
    assertThat(queue.getHasError(),is(false));
  }