EnqueuedItemWithSlicingContext { public static Builder.RequireEnqueuedItem builder() { return enqueuedItem -> slicingContext -> new Builder.ReadyToBuild(enqueuedItem, slicingContext); } private  EnqueuedItemWithSlicingContext(EnqueuedItem enqueuedItem, SlicingContext slicingContext); static Builder.RequireEnqueuedItem builder(); SlicingContext getSlicingContext(); EnqueuedItem getEnqueuedItem(); @Override final boolean equals(Object o); @Override final int hashCode();  }
@Test void buildShouldThrowWhenEnqueuedItemIsNull() { EnqueuedItem enqueuedItem = null; assertThatThrownBy(() -> EnqueuedItemWithSlicingContext.builder() .enqueuedItem(enqueuedItem) .slicingContext(slicingContext) .build()) .isInstanceOf(NullPointerException.class); }
@Test void buildShouldThrowWhenSlicingContextIsNull() { EnqueuedItemWithSlicingContext.SlicingContext slicingContext = null; assertThatThrownBy(() -> EnqueuedItemWithSlicingContext.builder() .enqueuedItem(enqueuedItem) .slicingContext(slicingContext) .build()) .isInstanceOf(NullPointerException.class); }