@@ -0,0 +1,768 @@
+package moe.tristan.easyfxml.model.fxml;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Apublic class FxmlLoaderTest %7B%0A%0A    private int succ = 0;%0A    private int fail = 0;%0A    private FxmlLoader fxmlLoader;%0A%0A    @Before%0A    public void setUp() %7B%0A        fxmlLoader = new FxmlLoader();%0A        fxmlLoader.setOnSuccess(n -%3E succ++);%0A        fxmlLoader.setOnFailure(e -%3E fail++);%0A    %7D%0A%0A    @Test%0A    public void onSuccess() %7B%0A        fxmlLoader.onSuccess(null);%0A        assertThat(succ).isEqualTo(1);%0A        assertThat(fail).isEqualTo(0);%0A    %7D%0A%0A    @Test%0A    public void onFailure() %7B%0A        fxmlLoader.onFailure(null);%0A        assertThat(succ).isEqualTo(0);%0A        assertThat(fail).isEqualTo(1);%0A    %7D%0A%7D%0A

Add some very light contract-testing to FxmlLoader