@Test public void getProduct_shouldFindExistingProduct() { Product product = persistence.getProduct(existingProduct.getProductId()); assertThat(existingProduct.compareTo(product), is(0)); }
@Override public Product getProduct(final String productId) { return read(productId); }
ProductBasePersistence extends AbstractBasePersistence<Product, String> implements ProductMapper { @Override public Product getProduct(final String productId) { return read(productId); } }
ProductBasePersistence extends AbstractBasePersistence<Product, String> implements ProductMapper { @Override public Product getProduct(final String productId) { return read(productId); }  }
ProductBasePersistence extends AbstractBasePersistence<Product, String> implements ProductMapper { @Override public Product getProduct(final String productId) { return read(productId); }  @Override List<Product> getProductListByCategory(final String categoryId); @Override Product getProduct(final String productId); @Override List<Product> searchProductList(final String name); }
ProductBasePersistence extends AbstractBasePersistence<Product, String> implements ProductMapper { @Override public Product getProduct(final String productId) { return read(productId); }  @Override List<Product> getProductListByCategory(final String categoryId); @Override Product getProduct(final String productId); @Override List<Product> searchProductList(final String name);  }