  In this paper we describe the performance of a prototype of the High Angle
Time Projection Chambers (HA-TPCs) that are being produced for the Near
Detector (ND280) upgrade of the T2K experiment. The two HA-TPCs of ND280 will
be instrumented with eight Encapsulated Resistive Anode Micromegas (ERAM) on
each endplate, thus constituting in total 32 ERAMs. This innovative technique
allows the detection of the charge emitted by ionization electrons over several
pads, improving the determination of the track position. The TPC prototype has
been equipped with the first ERAM module produced for T2K and with the HA-TPC
readout electronics chain and it has been exposed to the DESY Test Beam in
order to measure spatial and dE/dx resolution. In this paper we characterize
the performances of the ERAM and, for the first time, we compare them with a
newly developed simulation of the detector response. Spatial resolution better
than 800 ${\mu \rm m}$ and dE/dx resolution better than 10% are observed for
all the incident angles and for all the drift distances of interest. All the
main features of the data are correctly reproduced by the simulation and these
performances fully fulfill the requirements for the HA-TPCs of T2K.
