long evictionFragmentMaxSize = (long) (this.getMaxSize() * bufferProperties.getEvictionFragmentSizePercentage()); long fragmentSize = 0; int elementsInFragment = 0;
when(bufferProperties.getEvictionFragmentSizePercentage()).thenReturn(0.5f); buffer.postConstruct();
when(bufferProperties.getEvictionFragmentSizePercentage()).thenReturn(0.35f); when(bufferProperties.getFlagsSetOnBytes(anyLong())).thenReturn(flagsSetOnBytes); when(bufferProperties.getIndexingWaitTime()).thenReturn(10L);