memoization-core/src/test/java/de/xn__ho_hia/memoization/map/ConcurrentMapBasedSupplierMemoizerTest.java
@Test
    public void shouldAcceptPreComputedValuesKeySupplierAndValueSupplier() {
        // given
        final ConcurrentMap<String, String> precomputedValues = new ConcurrentHashMap<>();
        final Supplier<String> keySupplier = () -> "key";
        final Supplier<String> supplier = () -> "value";

        // when
        final ConcurrentMapBasedSupplierMemoizer<String, String> memoizer = new ConcurrentMapBasedSupplierMemoizer<>(
                precomputedValues, keySupplier, supplier);

        // then
        Assert.assertNotNull("Memoizer is NULL", memoizer);
    }
/**
     * Ensures that a new instance can be created, given that pre-computed values, a key-supplier and the actual value
     * supplier to memoize is present. If any of those values is <code>null</code>, an exception should be thrown.
     */
Ensures that a new instance can be created, given that pre-computed values, a key-supplier and the actual value
supplier to memoize is present. If any of those values is null, an exception should be thrown.
Ensures that a new instance can be created given that pre - computed values a key - supplier and the actual value supplier to memoize is present . If any of those values is null an exception should be thrown .
@Test
    public void shouldAcceptPreComputedValuesKeySupplierAndValueSupplier() {
        final ConcurrentMap<String, String> precomputedValues = new ConcurrentHashMap<>();
        final Supplier<String> keySupplier = () -> "key";
        final Supplier<String> supplier = () -> "value";
        final ConcurrentMapBasedSupplierMemoizer<String, String> memoizer = new ConcurrentMapBasedSupplierMemoizer<>(
                precomputedValues, keySupplier, supplier);
        Assert.assertNotNull("Memoizer is NULL", memoizer);
    }
@ Test public void shouldAcceptPreComputedValuesKeySupplierAndValueSupplier ( ) { final ConcurrentMap < String , String > precomputedValues = new ConcurrentHashMap < > ( ) ; final Supplier < String > keySupplier = ( ) -> "key" ; final Supplier < String > supplier = ( ) -> "value" ; final ConcurrentMapBasedSupplierMemoizer < String , String > memoizer = new ConcurrentMapBasedSupplierMemoizer < > ( precomputedValues , keySupplier , supplier ) ; Assert . assertNotNull ( "Memoizer is NULL" , memoizer ) ; }
Ensures that a new instance can be created, given that pre-computed values, a key-supplier and the actual value
 supplier to memoize is present.
Ensures that a new instance can be created given that pre - computed values a key - supplier and the actual value supplier to memoize is present .
// given // when // then