@Test(expected = UnsupportedOperationException.class)
public void readOnlyViewShouldNotSupportAdd() {

    final HeadersImpl readOnlyHeaders = new HeadersImpl(new HeadersImpl(), true);
    readOnlyHeaders.add("Content-Type", "application/json");
}