### Question:
StoreOptions { public String getOption( String name ) { StoreOptionEntity entity = entityManager.find(StoreOptionEntity.class, name); return entity != null ? entity.getValue() : null; } StoreOptions( EntityManager manager ); UUID getRootNodeUuid(); void setRootNodeUuid( UUID uuid ); String getVersion(); void setVersion( String version ); String getModelName(); void setModelName( Model model ); String getOption( String name ); void setOption( String name,
                           String value ); void removeOption( String name ); static final String ROOT_NODE_UUID; static final String VERSION; static final String MODEL; }### Answer:
@Test public void shouldReturnNullForNonExistantOption() { assertNoOptions(); assertThat(options.getOption("non-existant name"), is(nullValue())); }
@Test public void shouldReturnValueForExistingOption() { setOptionInTxn("name1", "value1"); try { manager.getTransaction().begin(); assertThat(options.getOption("name1"), is("value1")); manager.getTransaction().commit(); } catch (RuntimeException t) { manager.getTransaction().rollback(); throw t; } }