--- /dev/null
+# name: junit-class
+# key: junit
+# --
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+public class `(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))` {
+
+ @Before
+ public void setUp() {
+ $1
+ }
+
+ @After
+ public void tearDown() {
+ $2
+ }
+
+ @Test
+ public void ${3:does_some_thing}() {
+ $0
+ }
+
+}