@Test public void testGetSkuDetails() throws Exception {

    Inventory inventory = new Inventory();
    SkuDetails details = mock(SkuDetails.class);
    when(details.getSku()).thenReturn("sku1");
    assertThat(inventory.hasDetails("sku1")).isFalse();
    inventory.addSkuDetails(details);
    assertThat(inventory.getSkuDetails("sku1")).isSameAs(details);
}