@Test
public void submitTemplateTest() throws Exception {

	@SuppressWarnings("unchecked")
	Template<Object> template = Mockito.mock(Template.class);
	when(repository.getTemplate("template", "de")).thenReturn(template);
	mockMvc.perform(
			MockMvcRequestBuilders.fileUpload("/templates")
					.file("file", "test".getBytes())
					.param("name", "template")
					.param("language", "de"))
			.andExpect(MockMvcResultMatchers.status().isOk())
			.andExpect(MockMvcResultMatchers.content().contentType("text/html;charset=UTF-8"));
}