@Test
public void filename() throws Exception {

  final Map<String, String> someMap = Collections.singletonMap("name", fakeFileName);
  when(state.getTokens())
      .thenReturn(someMap);
  String filename = name(state);
  assertThat(filename, is(equalTo(fakeFileName)));
}