CreateCommand extends GeneralCommand<K, BuilderSupplier<OUT>> implements Supplier<BuilderSupplier<OUT>> { @Override public Cart<K, BuilderSupplier<OUT>, CommandLabel> copy() { return new CreateCommand<K, OUT>(getKey(), getValue(),getCreationTime(),getExpirationTime()); } CreateCommand(K k, BuilderSupplier<OUT> builderSupplier, long creation, long expiration);  CreateCommand(K k, long creation, long expiration); @Override BuilderSupplier<OUT> get(); @Override Cart<K, BuilderSupplier<OUT>, CommandLabel> copy();  }
@Test public void createTest() { CreateCommand<Integer,String> cc = new CreateCommand<>(1,0,0); assertNotNull(cc.copy()); }