### Question:
CommunityIdTypeConfigurationProvider implements IdTypeConfigurationProvider { @Override public IdTypeConfiguration getIdTypeConfiguration( IdType idType ) { return typeConfigurations.computeIfAbsent( idType, this::createIdTypeConfiguration ); }  @Override IdTypeConfiguration getIdTypeConfiguration( IdType idType );  }### Answer:
@Test public void nonReusableTypeConfiguration() { IdTypeConfigurationProvider provider = createIdTypeProvider(); IdTypeConfiguration typeConfiguration = provider.getIdTypeConfiguration( IdType.RELATIONSHIP ); assertFalse( "Relationship ids are not reusable.", typeConfiguration.allowAggressiveReuse() ); assertEquals( "Relationship ids are not reusable.", IdTypeConfiguration.DEFAULT_GRAB_SIZE, typeConfiguration.getGrabSize() ); }
@Test public void reusableTypeConfiguration() { IdTypeConfigurationProvider provider = createIdTypeProvider(); IdTypeConfiguration typeConfiguration = provider.getIdTypeConfiguration( reusableType ); assertTrue( typeConfiguration.allowAggressiveReuse() ); assertEquals( IdTypeConfiguration.AGGRESSIVE_GRAB_SIZE, typeConfiguration.getGrabSize() ); }