@@ -0,0 +1,1395 @@
+package com.futurice.freesound.utils;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Apublic class PreconditionsTest %7B%0A%0A    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A%0A    @Test%0A    public void checkNotNull_doesNotThrowException_whenNonNull() %7B%0A%0A        Preconditions.checkNotNull(new Object());%0A    %7D%0A%0A    @Test%0A    public void checkNotNull_throwsNullPointerException_whenNull() %7B%0A        thrown.expect(NullPointerException.class);%0A%0A        Preconditions.checkNotNull(null);%0A    %7D%0A%0A    @Test%0A    public void checkNotNullWithMessage_doesNotThrowException_whenNonNull() %7B%0A        Preconditions.checkNotNull(new Object(), %22Unused message%22);%0A    %7D%0A%0A    @Test%0A    public void checkNotNullWithMessage_throwsNullPointerExceptionWithMessage_whenNull() %7B%0A        final String message = %22message%22;%0A        thrown.expect(NullPointerException.class);%0A        thrown.expectMessage(message);%0A%0A        Preconditions.checkNotNull(null, message);%0A    %7D%0A%0A    @Test%0A    public void get_returnsParameter_whenNonNull() %7B%0A        Object obj = new Object();%0A%0A        assertThat(Preconditions.get(obj)).isEqualTo(obj);%0A    %7D%0A%0A    @Test%0A    public void get_throwsNullPointerException_whenNull() %7B%0A        thrown.expect(NullPointerException.class);%0A%0A        Preconditions.get(null);%0A    %7D%0A%0A%7D%0A

Add Preconditions tests