    @Test
    public void setRawFragmentTest() {

        // Arrange
        final URIBuilder uriBuilder = new URIBuilder("scheme://user@host:8000/path?a=1#fragment");

        // Act
        uriBuilder.setRawFragment("new-fragment");

        // Assert
        assertEquals("scheme", uriBuilder.getScheme());
        assertEquals("//user@host:8000/path?a=1", uriBuilder.getRawSchemeSpecificPart());
        assertEquals("user@host:8000", uriBuilder.getRawAuthority());
        assertEquals("user", uriBuilder.getRawUserInfo());
        assertEquals("host", uriBuilder.getHost());
        assertEquals(8000, uriBuilder.getPort());
        assertEquals("/path", uriBuilder.getRawPath());
        assertEquals("a=1", uriBuilder.getRawQuery());
        assertEquals("new-fragment", uriBuilder.getRawFragment());
    }