public virtual void GetValueFromJson_Should_ReturnCorrectStringValue() { // Arrange var expectedValue = "Hello World!"; var utf8Bytes = JsonSerializer.SerializeToUtf8Bytes(new { a = new { b = new { c = expectedValue } } }); var path = "a:b:c"; // Assert var actualValue = jsonProvider.GetValueFromJson <string>(utf8Bytes, path); // Act actualValue.Should().Be(expectedValue); }