NoOpQuotaService implements QuotaService, Condition { @Override public long getAvailableSpace() { return Long.MAX_VALUE; }  @PostConstruct void init(); @Override void checkIfAddingSizeExceedsAvailableStorage(long size); @Override boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata); @Override long getAvailableSpace();  }
@Test public void shouldReturnLongMaxValue() { final long availableSpace = service.getAvailableSpace(); assertEquals(Long.MAX_VALUE, availableSpace); }