diff --git a/abstract-document/src/test/java/com/iluwatar/abstractdocument/AbstractDocumentTest.java b/abstract-document/src/test/java/com/iluwatar/abstractdocument/AbstractDocumentTest.java index a86e6273d5b5..61d1f1128784 100644 --- a/abstract-document/src/test/java/com/iluwatar/abstractdocument/AbstractDocumentTest.java +++ b/abstract-document/src/test/java/com/iluwatar/abstractdocument/AbstractDocumentTest.java @@ -114,12 +114,16 @@ void shouldUpdateExistingValue() { final String originalValue = "originalValue"; final String updatedValue = "updatedValue"; + // Initializing the value document.put(key, originalValue); + // Verifying that the initial value is retrieved correctly + assertEquals(originalValue, document.get(key)); + // Updating the value document.put(key, updatedValue); - //Verifying that the updated value is retrieved correctly + // Verifying that the updated value is retrieved correctly assertEquals(updatedValue, document.get(key)); } }