That's a language still. Here's a java codeblock:
public class MyUnit {
public String concatenate(String one, String two){
return one + two;
}
}
And since we have that class, let's test it
import org.junit.Test;
import static org.junit.Assert.*;
public class MyUnitTest {
@Test
public void testConcatenate() {
MyUnit myUnit = new MyUnit();
String result = myUnit.concatenate("one", "two");
assertEquals("onetwo", result);
}
}