@@ -0,0 +1,954 @@
+package de.agilecoders.wicket.jquery;%0A%0Aimport de.agilecoders.wicket.jquery.util.Json;%0Aimport org.junit.Test;%0A%0Aimport static de.agilecoders.wicket.jquery.JQuery.auto;%0Aimport static org.hamcrest.CoreMatchers.*;%0Aimport static org.hamcrest.MatcherAssert.*;%0A%0Apublic class AttrTest %7B%0A%0A    @Test%0A    public void autoCastsValue() throws Exception %7B%0A        assertThat(auto(1).toString(), is(%221%22));%0A        assertThat(auto(%22abcd%22).toString(), is(%22'abcd'%22));%0A        assertThat(auto(Json.parse(%22%7Bkey:1,asString:'1'%7D%22)).toString(), is(%22%7B%5C%22key%5C%22:1,%5C%22asString%5C%22:%5C%221%5C%22%7D%22));%0A    %7D%0A%0A    @Test%0A    public void nullValue() throws Exception %7B%0A        assertThat(Attr.nullValue().toString(), is(%22null%22));%0A    %7D%0A%0A    @Test%0A    public void quoted() throws Exception %7B%0A        assertThat(new Attr.Quoted(%22value%22).toString(), is(%22'value'%22));%0A    %7D%0A%0A    @Test%0A    public void plain() throws Exception %7B%0A        assertThat(new Attr.Plain(%22value%22).toString(), is(%22value%22));%0A    %7D%0A%7D

add test